Input: twl4030-pwrbutton: ensure a wakeup event is recorded.
Subsystems (2)
PATCH 1/1 Input: twl4030-pwrbutton: ensure a wakeup event is recorded.
This button is treated as a wakeup source, so we need to initialise it correctly.
Without the device_init_wakeup() call, dev->power.wakeup will be NULL, and pm_wakeup_event() will do nothing.
Signed-off-by NeilBrown <[email protected]>
drivers/input/misc/twl4030-pwrbutton.c +1 -0
@@ -85,6 +85,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) }platform_set_drvdata (pdev, pwr); +device_init_wakeup (&pdev->dev, true);return 0 ; }
Quoted 9 lines · NeilBrown
This button is treated as a wakeup source, so we need to initialise it correctly.
Without the
device_init_wakeup()call,dev->power.wakeupwill be NULL, andpm_wakeup_event()will do nothing.Signed-off-by NeilBrown <[email protected]>
Applied, thank you.
Quoted 13 lines
drivers/input/misc/twl4030-pwrbutton.c +1
-0@@ -85,6 +85,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) }platform_set_drvdata (pdev, pwr); +device_init_wakeup (&pdev->dev, true);return 0 ; }
Signature · 1 line
Dmitry