diff options
author | Daniel Drake <dsd@laptop.org> | 2011-07-24 13:34:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-07-24 14:16:05 -0400 |
commit | 07d5b38e14b7ff98eb52e4a6db4e20abcc608da3 (patch) | |
tree | 0e0f48bb0033d67acee4092e9d525ab87ef240ee /arch/x86/platform | |
parent | d8d01a6378db6e3eeb8777a8769c69e455635dc3 (diff) |
x86, olpc-xo15-sci: Enable EC wakeup capability
Some recent changes to the way that ACPI handles wakeup flags
means that the XO15EC ACPI device is not wakeup-capable by
default so device_set_wakeup_enable() does nothing.
Use device_init_wakeup() to mark the device as wakeup capable,
and to enable wakeups.
Signed-off-by: Daniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/20110724173430.BE03C9D401C@zog.reactivated.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/olpc/olpc-xo15-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index a5990ebadbe4..2b235b77d9ab 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c | |||
@@ -120,7 +120,7 @@ static int xo15_sci_add(struct acpi_device *device) | |||
120 | 120 | ||
121 | /* Enable wake-on-EC */ | 121 | /* Enable wake-on-EC */ |
122 | if (device->wakeup.flags.valid) | 122 | if (device->wakeup.flags.valid) |
123 | device_set_wakeup_enable(&device->dev, true); | 123 | device_init_wakeup(&device->dev, true); |
124 | 124 | ||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |