aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ward <[email protected]>2015-04-16 12:45:32 -0700
committerLinus Torvalds <[email protected]>2015-04-17 09:04:00 -0400
commitd174a024007dd543fd066cffd8eb727806a62da6 (patch)
treeefd2857d8aebe9edf07a8cfb8076f83d9e58b1d0
parentae824c484c85d77e3f272515aafb410bbade13fa (diff)
drivers/rtc/rtc-da9052.c: register ability of alarm to wake device from suspend
Signed-off-by: Adam Ward <[email protected]> Tested-by: Adam Ward <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--drivers/rtc/rtc-da9052.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c
index acc3e5a1f61a..1ba4371cbc2d 100644
--- a/drivers/rtc/rtc-da9052.c
+++ b/drivers/rtc/rtc-da9052.c
@@ -309,6 +309,8 @@ static int da9052_rtc_probe(struct platform_device *pdev)
return ret;
}
+ device_init_wakeup(&pdev->dev, true);
+
rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
&da9052_rtc_ops, THIS_MODULE);
return PTR_ERR_OR_ZERO(rtc->rtc);