summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAdam Ward <adam.ward.opensource@diasemi.com>2015-04-16 12:45:32 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:00 -0400
commitd174a024007dd543fd066cffd8eb727806a62da6 (patch)
treeefd2857d8aebe9edf07a8cfb8076f83d9e58b1d0 /drivers/rtc
parentae824c484c85d77e3f272515aafb410bbade13fa (diff)
downloadblackbird-obmc-linux-d174a024007dd543fd066cffd8eb727806a62da6.tar.gz
blackbird-obmc-linux-d174a024007dd543fd066cffd8eb727806a62da6.zip
drivers/rtc/rtc-da9052.c: register ability of alarm to wake device from suspend
Signed-off-by: Adam Ward <adam.ward.opensource@diasemi.com> Tested-by: Adam Ward <adam.ward.opensource@diasemi.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-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);
OpenPOWER on IntegriCloud