From: NeilBrown Date: Fri, 7 Nov 2014 23:46:56 +0000 (-0800) Subject: Input: twl4030-pwrbutton - ensure a wakeup event is recorded. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c42bfd7f6cd26e8f712fc184460e32845d928d17;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index fb3b63b2f85c..8400a1a34d87 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c @@ -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; }