rtc S3C: add device_init_wakeup() invokation
authorYauhen Kharuzhy <[email protected]>
Wed, 29 Oct 2008 21:01:16 +0000 (14:01 -0700)
committerLinus Torvalds <[email protected]>
Thu, 30 Oct 2008 18:38:47 +0000 (11:38 -0700)
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: Yauhen Kharuzhy <[email protected]>
Acked-by: Ben Dooks <[email protected]>
Acked-by: Alessandro Zummo <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-s3c.c

index 340d03be82069bbcd7f783ef39737e4b86368875..f59277bbedaa2923a7b4f35127d9fdf9b3b3b309 100644 (file)
@@ -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,