From: Jingoo Han Date: Tue, 26 Mar 2013 23:25:18 +0000 (+1100) Subject: rtc: rtc-mv: use module_platform_driver_probe() X-Git-Tag: next-20130404~3^2~250 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0b2696398efd5ee5559c72648316be37e807dcc5;p=karo-tx-linux.git rtc: rtc-mv: 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 --- diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c index d8e875e9a165..f378e1773a3e 100644 --- a/drivers/rtc/rtc-mv.c +++ b/drivers/rtc/rtc-mv.c @@ -331,18 +331,7 @@ static struct platform_driver mv_rtc_driver = { }, }; -static __init int mv_init(void) -{ - return platform_driver_probe(&mv_rtc_driver, mv_rtc_probe); -} - -static __exit void mv_exit(void) -{ - platform_driver_unregister(&mv_rtc_driver); -} - -module_init(mv_init); -module_exit(mv_exit); +module_platform_driver_probe(mv_rtc_driver, mv_rtc_probe); MODULE_AUTHOR("Saeed Bishara "); MODULE_DESCRIPTION("Marvell RTC driver");