Skip to content

Commit

Permalink
x86, olpc-xo15-sci: Enable EC wakeup capability
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Drake authored and Ingo Molnar committed Jul 24, 2011
1 parent d8d01a6 commit 07d5b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/platform/olpc/olpc-xo15-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int xo15_sci_add(struct acpi_device *device)

/* Enable wake-on-EC */
if (device->wakeup.flags.valid)
device_set_wakeup_enable(&device->dev, true);
device_init_wakeup(&device->dev, true);

return 0;
}
Expand Down

0 comments on commit 07d5b38

Please sign in to comment.