From 802062da2c5664a88671364b28e302d1a981b31e Mon Sep 17 00:00:00 2001 From: Tony LIU Date: Fri, 20 Jan 2012 11:02:18 +0800 Subject: [PATCH] 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 --- arch/arm/plat-mxc/usb_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5