diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 20:37:20 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 20:37:20 -0500 |
| commit | c2e08e7ce5ab25a781197a71c5241742e8c9fdfe (patch) | |
| tree | 70cce0b2f4cb82b1670e987169a7790e8467cf41 /drivers/rtc | |
| parent | 28190145543260c155216b9bd3adf57bee50f8b2 (diff) | |
| parent | b3a0aa3ae1c0889ffe8abb2e326d5c74c7c9c097 (diff) | |
Merge branch 'unicore32' of git://github.com/gxt/linux
* 'unicore32' of git://github.com/gxt/linux:
rtc-puv3: solve section mismatch in rtc-puv3.c
rtc-puv3: using module_platform_driver()
i2c-puv3: using module_platform_driver()
rtc-puv3: irq: remove IRQF_DISABLED
unicore32: Remove IRQF_DISABLED
unicore32: Use set_current_blocked()
unicore32: add ioremap_nocache definition
unicore32: delete specified xlate_dev_mem_ptr
of: add include asm/setup.h in drivers/of/fdt.c
unicore32: standardize /proc/iomem "Kernel code" name
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"); |
