ACPI / Button: Avoid disabling wakeup unnecessarily on remove
commitc19f9a84ec807da57fd75bbd9a3f2b8269611f79
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 8 Feb 2011 22:41:13 +0000 (8 23:41 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 24 Feb 2011 18:58:53 +0000 (24 19:58 +0100)
tree5c497337c44ed1ae8fbb16439ebe1a19e9991024
parent5190726765b40774c069e187a958e10ccd970e65
ACPI / Button: Avoid disabling wakeup unnecessarily on remove

If a button device had already been enabled to wake up the system
from sleep states before the button driver saw it, the driver
shouldn't disable the device's wakeup capability when being detached
from the device.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/button.c