From: Rafael J. Wysocki Date: Wed, 28 Feb 2018 11:09:56 +0000 (+0100) Subject: platform/x86: intel-vbtn: Reset wakeup capable flag on removal X-Git-Tag: v5.15~9255^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b758dbd57650b4157da98b2c734974b409849625;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c index 8173307..c13780b8 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) { acpi_handle handle = ACPI_HANDLE(&device->dev); + device_init_wakeup(&device->dev, false); acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler); /*