Commit 51b7616e authored by Yauhen Kharuzhy's avatar Yauhen Kharuzhy Committed by Linus Torvalds

rtc S3C: add device_init_wakeup() invokation

tAdd adds device_init_wakeup() ivokation to probe function of
s3c2410_rtc_driver.  Without of this wakealarm sysfs attribute does not
initialise.
Signed-off-by: default avatarYauhen Kharuzhy <jekhor@gmail.com>
Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7106a27b
...@@ -455,6 +455,8 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) ...@@ -455,6 +455,8 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
s3c_rtc_setfreq(&pdev->dev, 1); s3c_rtc_setfreq(&pdev->dev, 1);
device_init_wakeup(&pdev->dev, 1);
/* register RTC and exit */ /* register RTC and exit */
rtc = rtc_device_register("s3c", &pdev->dev, &s3c_rtcops, rtc = rtc_device_register("s3c", &pdev->dev, &s3c_rtcops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment