Patchwork [RESEND,2/4] rtc/ab8500: set can_wake flag

login
register
mail settings
Submitter Linus Walleij
Date Nov. 23, 2011, 4:56 p.m.
Message ID <1322067409-12502-1-git-send-email-linus.walleij@stericsson.com>
Download mbox | patch
Permalink /patch/127349/
State New
Headers show

Comments

Linus Walleij - Nov. 23, 2011, 4:56 p.m.
From: Andrew Lynn <andrew.lynn@stericsson.com>

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>
---
 drivers/rtc/rtc-ab8500.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c
index d6bfc4f..82a3480 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)) {