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

Erni Sri Satya Vennela posted 3 patches 1 year ago
[PATCH v4 2/3] Input: hyperv-keyboard - disable as wakeup source
Posted by Erni Sri Satya Vennela 1 year ago
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 --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;
 
-- 
2.34.1