diff options
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-ds3234.c | 4 | ||||
| -rw-r--r-- | drivers/rtc/rtc-s3c.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-ds3234.c b/drivers/rtc/rtc-ds3234.c index 37d131d03f33..45e5b106af73 100644 --- a/drivers/rtc/rtc-ds3234.c +++ b/drivers/rtc/rtc-ds3234.c | |||
| @@ -189,7 +189,7 @@ static const struct rtc_class_ops ds3234_rtc_ops = { | |||
| 189 | .set_time = ds3234_set_time, | 189 | .set_time = ds3234_set_time, |
| 190 | }; | 190 | }; |
| 191 | 191 | ||
| 192 | static int ds3234_probe(struct spi_device *spi) | 192 | static int __devinit ds3234_probe(struct spi_device *spi) |
| 193 | { | 193 | { |
| 194 | struct rtc_device *rtc; | 194 | struct rtc_device *rtc; |
| 195 | unsigned char tmp; | 195 | unsigned char tmp; |
| @@ -249,7 +249,7 @@ static int ds3234_probe(struct spi_device *spi) | |||
| 249 | return 0; | 249 | return 0; |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | static int __exit ds3234_remove(struct spi_device *spi) | 252 | static int __devexit ds3234_remove(struct spi_device *spi) |
| 253 | { | 253 | { |
| 254 | struct ds3234 *chip = platform_get_drvdata(spi); | 254 | struct ds3234 *chip = platform_get_drvdata(spi); |
| 255 | struct rtc_device *rtc = chip->rtc; | 255 | struct rtc_device *rtc = chip->rtc; |
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); |
