summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-11-07 15:46:56 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-11-08 00:26:44 -0800
commitc42bfd7f6cd26e8f712fc184460e32845d928d17 (patch)
tree839cc48ef762fa5621eb554821683954676cf6d6 /drivers/input
parente4742b1e786ca386e88e6cfb2801e14e15e365cd (diff)
downloadlinux-stable-c42bfd7f6cd26e8f712fc184460e32845d928d17.tar.gz
linux-stable-c42bfd7f6cd26e8f712fc184460e32845d928d17.tar.bz2
linux-stable-c42bfd7f6cd26e8f712fc184460e32845d928d17.zip
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 <neilb@suse.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/twl4030-pwrbutton.c1
1 files changed, 1 insertions, 0 deletions
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;
}