summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ab8500.c
diff options
context:
space:
mode:
authorAndrew Lynn <andrew.lynn@stericsson.com>2012-01-11 00:10:38 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-11 01:30:52 +0100
commitb62581e6241c33b9fef45117f86830058738371f (patch)
tree41507fcead5502264742448d13c0a2552d6fa03a /drivers/rtc/rtc-ab8500.c
parentrtc/ab8500: don't disable IRQ:s when suspending (diff)
downloadlinux-b62581e6241c33b9fef45117f86830058738371f.tar.xz
linux-b62581e6241c33b9fef45117f86830058738371f.zip
rtc/ab8500: set can_wake flag
Set can_wake flag so wakealarm property is visible in sysfs. Signed-off-by: Andrew Lynn <andrew.lynn@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> 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/rtc-ab8500.c')
-rw-r--r--drivers/rtc/rtc-ab8500.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c
index d6bfc4f3658e..82a348095a71 100644
--- a/drivers/rtc/rtc-ab8500.c
+++ b/drivers/rtc/rtc-ab8500.c
@@ -308,6 +308,8 @@ static int __devinit ab8500_rtc_probe(struct platform_device *pdev)
return -ENODEV;
}
+ device_init_wakeup(&pdev->dev, true);
+
rtc = rtc_device_register("ab8500-rtc", &pdev->dev, &ab8500_rtc_ops,
THIS_MODULE);
if (IS_ERR(rtc)) {