diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-02-28 06:09:56 -0500 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-28 07:26:27 -0500 |
commit | 250b044e1a584887c06e6ba79446e523ffa3cc9c (patch) | |
tree | 02d9cf87d447f7e5b90e5f0cb0cb8f662f1909c0 | |
parent | 027d50ccd6a01c6ca8969b49e69f26d64a8f94b2 (diff) |
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: 91f9e850d465 (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>
-rw-r--r-- | drivers/platform/x86/intel-vbtn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c index 8173307d6bb1..c13780b8dabb 100644 --- a/drivers/platform/x86/intel-vbtn.c +++ b/drivers/platform/x86/intel-vbtn.c | |||
@@ -166,6 +166,7 @@ static int intel_vbtn_remove(struct platform_device *device) | |||
166 | { | 166 | { |
167 | acpi_handle handle = ACPI_HANDLE(&device->dev); | 167 | acpi_handle handle = ACPI_HANDLE(&device->dev); |
168 | 168 | ||
169 | device_init_wakeup(&device->dev, false); | ||
169 | acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler); | 170 | acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler); |
170 | 171 | ||
171 | /* | 172 | /* |