From: Jingoo Han Date: Mon, 29 Apr 2013 23:18:49 +0000 (-0700) Subject: rtc: rtc-pxa: use module_platform_driver_probe() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7daba88e9d4214fd2b70c000a1ad64b15699b527;p=linux-beck.git rtc: rtc-pxa: use module_platform_driver_probe() Use module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c index 03c85ee719a7..22950bf6a652 100644 --- a/drivers/rtc/rtc-pxa.c +++ b/drivers/rtc/rtc-pxa.c @@ -452,18 +452,7 @@ static struct platform_driver pxa_rtc_driver = { }, }; -static int __init pxa_rtc_init(void) -{ - return platform_driver_probe(&pxa_rtc_driver, pxa_rtc_probe); -} - -static void __exit pxa_rtc_exit(void) -{ - platform_driver_unregister(&pxa_rtc_driver); -} - -module_init(pxa_rtc_init); -module_exit(pxa_rtc_exit); +module_platform_driver_probe(pxa_rtc_driver, pxa_rtc_probe); MODULE_AUTHOR("Robert Jarzmik "); MODULE_DESCRIPTION("PXA27x/PXA3xx Realtime Clock Driver (RTC)");