]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00172475 [USB]Add wakeup entry for USB device on Kernel3.0
authorTony LIU <junjie.liu@freescale.com>
Fri, 20 Jan 2012 03:02:18 +0000 (11:02 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:50 +0000 (08:33 +0200)
- in Kernel 3.0, all the wakeup entry is removed by default,
  we need add it manually

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
arch/arm/plat-mxc/usb_common.c

index 80e2a958e540865466653b702e1ea633dda713ab..b50963b9b40344b8f876c6980703049d1fa2d2c4 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -456,7 +456,7 @@ static int usb_register_remote_wakeup(struct platform_device *pdev)
                return -ENODEV;
        }
        irq = res->start;
-       pdev->dev.power.can_wakeup = 1;
+       device_set_wakeup_capable(&pdev->dev, true);
        enable_irq_wake(irq);
 
        return 0;