diff options
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-puv3.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/rtc-puv3.c index e4b6880aabd0..ab0acaeb2371 100644 --- a/drivers/rtc/rtc-puv3.c +++ b/drivers/rtc/rtc-puv3.c | |||
@@ -164,7 +164,7 @@ static int puv3_rtc_open(struct device *dev) | |||
164 | int ret; | 164 | int ret; |
165 | 165 | ||
166 | ret = request_irq(puv3_rtc_alarmno, puv3_rtc_alarmirq, | 166 | ret = request_irq(puv3_rtc_alarmno, puv3_rtc_alarmirq, |
167 | IRQF_DISABLED, "pkunity-rtc alarm", rtc_dev); | 167 | 0, "pkunity-rtc alarm", rtc_dev); |
168 | 168 | ||
169 | if (ret) { | 169 | if (ret) { |
170 | dev_err(dev, "IRQ%d error %d\n", puv3_rtc_alarmno, ret); | 170 | dev_err(dev, "IRQ%d error %d\n", puv3_rtc_alarmno, ret); |
@@ -172,7 +172,7 @@ static int puv3_rtc_open(struct device *dev) | |||
172 | } | 172 | } |
173 | 173 | ||
174 | ret = request_irq(puv3_rtc_tickno, puv3_rtc_tickirq, | 174 | ret = request_irq(puv3_rtc_tickno, puv3_rtc_tickirq, |
175 | IRQF_DISABLED, "pkunity-rtc tick", rtc_dev); | 175 | 0, "pkunity-rtc tick", rtc_dev); |
176 | 176 | ||
177 | if (ret) { | 177 | if (ret) { |
178 | dev_err(dev, "IRQ%d error %d\n", puv3_rtc_tickno, ret); | 178 | dev_err(dev, "IRQ%d error %d\n", puv3_rtc_tickno, ret); |
@@ -326,7 +326,7 @@ static int puv3_rtc_resume(struct platform_device *pdev) | |||
326 | #define puv3_rtc_resume NULL | 326 | #define puv3_rtc_resume NULL |
327 | #endif | 327 | #endif |
328 | 328 | ||
329 | static struct platform_driver puv3_rtcdrv = { | 329 | static struct platform_driver puv3_rtc_driver = { |
330 | .probe = puv3_rtc_probe, | 330 | .probe = puv3_rtc_probe, |
331 | .remove = __devexit_p(puv3_rtc_remove), | 331 | .remove = __devexit_p(puv3_rtc_remove), |
332 | .suspend = puv3_rtc_suspend, | 332 | .suspend = puv3_rtc_suspend, |
@@ -337,21 +337,7 @@ static struct platform_driver puv3_rtcdrv = { | |||
337 | } | 337 | } |
338 | }; | 338 | }; |
339 | 339 | ||
340 | static char __initdata banner[] = "PKUnity-v3 RTC, (c) 2009 PKUnity Co.\n"; | 340 | module_platform_driver(puv3_rtc_driver); |
341 | |||
342 | static int __init puv3_rtc_init(void) | ||
343 | { | ||
344 | printk(banner); | ||
345 | return platform_driver_register(&puv3_rtcdrv); | ||
346 | } | ||
347 | |||
348 | static void __exit puv3_rtc_exit(void) | ||
349 | { | ||
350 | platform_driver_unregister(&puv3_rtcdrv); | ||
351 | } | ||
352 | |||
353 | module_init(puv3_rtc_init); | ||
354 | module_exit(puv3_rtc_exit); | ||
355 | 341 | ||
356 | MODULE_DESCRIPTION("RTC Driver for the PKUnity v3 chip"); | 342 | MODULE_DESCRIPTION("RTC Driver for the PKUnity v3 chip"); |
357 | MODULE_AUTHOR("Hu Dongliang"); | 343 | MODULE_AUTHOR("Hu Dongliang"); |