mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 13:00:35 +00:00
platform/x86: intel-vbtn: Reset wakeup capable flag on removal
The intel-vbtn device will not be able to wake up the system any more
after removing the notify handler provided by its driver, so make
its sysfs attributes reflect that.
Fixes: 91f9e850d4
(platform: x86: intel-vbtn: Wake up the system from suspend-to-idle)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
027d50ccd6
commit
250b044e1a
@ -166,6 +166,7 @@ static int intel_vbtn_remove(struct platform_device *device)
|
|||||||
{
|
{
|
||||||
acpi_handle handle = ACPI_HANDLE(&device->dev);
|
acpi_handle handle = ACPI_HANDLE(&device->dev);
|
||||||
|
|
||||||
|
device_init_wakeup(&device->dev, false);
|
||||||
acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler);
|
acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user