From: Tony LIU Date: Fri, 20 Jan 2012 03:02:18 +0000 (+0800) Subject: ENGR00172475 [USB]Add wakeup entry for USB device on Kernel3.0 X-Git-Tag: v3.0.35-fsl~1616 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42c54b94a82b09e4ff461a99230c547d8fca42a9;p=karo-tx-linux.git ENGR00172475 [USB]Add wakeup entry for USB device on Kernel3.0 - in Kernel 3.0, all the wakeup entry is removed by default, we need add it manually Signed-off-by: Tony LIU --- diff --git a/arch/arm/plat-mxc/usb_common.c b/arch/arm/plat-mxc/usb_common.c index 80e2a958e540..b50963b9b403 100755 --- a/arch/arm/plat-mxc/usb_common.c +++ b/arch/arm/plat-mxc/usb_common.c @@ -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;