Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07d5b38e authored by Daniel Drake's avatar Daniel Drake Committed by Ingo Molnar
Browse files

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: default avatarDaniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/20110724173430.BE03C9D401C@zog.reactivated.net


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d8d01a63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}