Skip to content

Commit 07d5b38

Browse files
Daniel DrakeIngo Molnar
authored andcommitted
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>
1 parent d8d01a6 commit 07d5b38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/platform/olpc/olpc-xo15-sci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static int xo15_sci_add(struct acpi_device *device)
120120

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

125125
return 0;
126126
}

0 commit comments

Comments
 (0)