Message ID | 1734409029-10419-3-git-send-email-ernis@linux.microsoft.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Disable Suspend-to-Idle in Hyper-V and Fix Hibernation Interruptions | expand |
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;
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(-)