Skip to contentSkip to conversation

RTC S3C: Add device_init_wakeup() invokation

PATCH In review Yauhen Kharuzhy 3 participants 3 messages Oct 23, 2008 – Oct 28, 2008 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RTC S3C: Add device_init_wakeup() invokation

This patch adds device_init_wakeup() ivokation to probe function of s3c2410_rtc_driver. Without of this wakealarm sysfs attribute does not initialise.

---
 drivers/rtc/rtc-s3c.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/rtc/rtc-s3c.c +2 -0
index 9a92ee1..70d9fc3 100644
@@ -455,6 +455,8 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
 
 	s3c_rtc_setfreq(&pdev->dev, 1);
 
+	device_init_wakeup(&pdev->dev, 1);
+
 	/* register RTC and exit */
 
 	rtc = rtc_device_register("s3c", &pdev->dev, &s3c_rtcops,
Signature · 1 line
1.5.6.5
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Yauhen Kharuzhy

This patch adds device_init_wakeup() ivokation to probe function of

invocation

Quoted 4 lines

s3c2410_rtc_driver. Without of this wakealarm sysfs attribute does not initialise.

Quoted 25 lines
---
 drivers/rtc/rtc-s3c.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/rtc/rtc-s3c.c +2 -0
index 9a92ee1..70d9fc3 100644
@@ -455,6 +455,8 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
 
 	s3c_rtc_setfreq(&pdev->dev, 1);
 
+	device_init_wakeup(&pdev->dev, 1);
+
 	/* register RTC and exit */
 
 	rtc = rtc_device_register("s3c", &pdev->dev, &s3c_rtcops,
Signature · 7 lines
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'
Acked-by on v1 1/1
#2 lore raw
In reply to Yauhen Kharuzhy
Quoted 5 lines · On Thu, 23 Oct 2008 13:46:55 +0300 Yauhen Kharuzhy <[email protected]> wrote:

This patch adds device_init_wakeup() ivokation to probe function of s3c2410_rtc_driver. Without of this wakealarm sysfs attribute does not initialise.

Signature · 6 lines
 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it