diff options
Diffstat (limited to 'drivers/rtc/rtc-s3c.c')
| -rw-r--r-- | drivers/rtc/rtc-s3c.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index 910bc704939c..f59277bbedaa 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c | |||
| @@ -455,6 +455,8 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev) | |||
| 455 | 455 | ||
| 456 | s3c_rtc_setfreq(&pdev->dev, 1); | 456 | s3c_rtc_setfreq(&pdev->dev, 1); |
| 457 | 457 | ||
| 458 | device_init_wakeup(&pdev->dev, 1); | ||
| 459 | |||
| 458 | /* register RTC and exit */ | 460 | /* register RTC and exit */ |
| 459 | 461 | ||
| 460 | rtc = rtc_device_register("s3c", &pdev->dev, &s3c_rtcops, | 462 | rtc = rtc_device_register("s3c", &pdev->dev, &s3c_rtcops, |
| @@ -507,7 +509,7 @@ static int s3c_rtc_resume(struct platform_device *pdev) | |||
| 507 | #define s3c_rtc_resume NULL | 509 | #define s3c_rtc_resume NULL |
| 508 | #endif | 510 | #endif |
| 509 | 511 | ||
| 510 | static struct platform_driver s3c2410_rtcdrv = { | 512 | static struct platform_driver s3c2410_rtc_driver = { |
| 511 | .probe = s3c_rtc_probe, | 513 | .probe = s3c_rtc_probe, |
| 512 | .remove = __devexit_p(s3c_rtc_remove), | 514 | .remove = __devexit_p(s3c_rtc_remove), |
| 513 | .suspend = s3c_rtc_suspend, | 515 | .suspend = s3c_rtc_suspend, |
| @@ -523,12 +525,12 @@ static char __initdata banner[] = "S3C24XX RTC, (c) 2004,2006 Simtec Electronics | |||
| 523 | static int __init s3c_rtc_init(void) | 525 | static int __init s3c_rtc_init(void) |
| 524 | { | 526 | { |
| 525 | printk(banner); | 527 | printk(banner); |
| 526 | return platform_driver_register(&s3c2410_rtcdrv); | 528 | return platform_driver_register(&s3c2410_rtc_driver); |
| 527 | } | 529 | } |
| 528 | 530 | ||
| 529 | static void __exit s3c_rtc_exit(void) | 531 | static void __exit s3c_rtc_exit(void) |
| 530 | { | 532 | { |
| 531 | platform_driver_unregister(&s3c2410_rtcdrv); | 533 | platform_driver_unregister(&s3c2410_rtc_driver); |
| 532 | } | 534 | } |
| 533 | 535 | ||
| 534 | module_init(s3c_rtc_init); | 536 | module_init(s3c_rtc_init); |
