Thread (1 message) 1 message, 1 author, 2013-03-08
DORMANTno replies

[PATCH v2 5/9] rtc: stmp3xxx: enable wakeup functionality

From: Steffen Trumtrar <hidden>
Date: 2013-03-08 09:01:40
Subsystem: real time clock (rtc) subsystem, the rest · Maintainers: Alexandre Belloni, Linus Torvalds

This RTC can wakeup the system. Register the device accordingly.

Signed-off-by: Juergen Beisert <redacted>
Signed-off-by: Steffen Trumtrar <redacted>
---
 drivers/rtc/rtc-stmp3xxx.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c
index d2283c5..cd844ec 100644
--- a/drivers/rtc/rtc-stmp3xxx.c
+++ b/drivers/rtc/rtc-stmp3xxx.c
@@ -370,6 +370,9 @@ static int stmp3xxx_rtc_probe(struct platform_device *pdev)
 			STMP3XXX_RTC_CTRL_ALARM_IRQ_EN,
 			rtc_data->io + STMP3XXX_RTC_CTRL_CLR);
 
+	/* this RTC can wake up the system */
+	device_init_wakeup(&pdev->dev, true);
+
 	rtc_data->rtc = rtc_device_register(pdev->name, &pdev->dev,
 				&stmp3xxx_rtc_ops, THIS_MODULE);
 	if (IS_ERR(rtc_data->rtc)) {
-- 
1.8.2.rc2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help