diff mbox series

[v4,2/3] Input: hyperv-keyboard - disable as wakeup source

Message ID 1734409029-10419-3-git-send-email-ernis@linux.microsoft.com
State New
Headers show
Series Disable Suspend-to-Idle in Hyper-V and Fix Hibernation Interruptions | expand

Commit Message

Erni Sri Satya Vennela Dec. 17, 2024, 4:17 a.m. UTC
Do not enable keyboard as wakeup device since
Suspend-to-Idle feature is no longer supported.

Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
---
Changes in v4:
* Replace device_init_wakeup() with device_set_wakeup_capable()
  without reverting "Input: hyperv-keyboard - register as a wakeup source"

Changes in v3, v2:
* No change.
---
 drivers/input/serio/hyperv-keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c
index 0ee7505427ac..b32047f36321 100644
--- a/drivers/input/serio/hyperv-keyboard.c
+++ b/drivers/input/serio/hyperv-keyboard.c
@@ -355,7 +355,7 @@  static int hv_kbd_probe(struct hv_device *hv_dev,
 
 	serio_register_port(kbd_dev->hv_serio);
 
-	device_init_wakeup(&hv_dev->device, true);
+	device_set_wakeup_capable(&hv_dev->device, true);
 
 	return 0;