summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony LIU <junjie.liu@freescale.com>2012-01-20 11:02:18 +0800
committerTony LIU <junjie.liu@freescale.com>2012-01-30 10:14:39 +0800
commitc843da9fe31c74ef5552b19f9effd3a033bf5f77 (patch)
treeab12523e7a4bdb0e7f920ba278ffef93b0faa569
parentb156ed1a8d6e5b673df302d2c89819557b7b1caa (diff)
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 <junjie.liu@freescale.com>
-rwxr-xr-xarch/arm/plat-mxc/usb_common.c4
1 files 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;