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

Commit 38c08aa5 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Andy Shevchenko
Browse files

platform/x86: intel-hid: Reset wakeup capable flag on removal



The intel-hid 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: ef884112 (platform: x86: intel-hid: Wake up the system from suspend-to-idle)
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent b758dbd5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -376,6 +376,7 @@ static int intel_hid_remove(struct platform_device *device)
{
	acpi_handle handle = ACPI_HANDLE(&device->dev);

	device_init_wakeup(&device->dev, false);
	acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler);
	intel_hid_set_enable(&device->dev, false);
	intel_button_array_enable(&device->dev, false);