From: Jingoo Han Date: Mon, 29 Apr 2013 23:18:44 +0000 (-0700) Subject: rtc: rtc-mv: use module_platform_driver_probe() X-Git-Tag: v3.10-rc1~178^2~188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1963f7cd19a4c9ddbb5e4d43859c30109b0ba65c;p=platform%2Fkernel%2Flinux-exynos.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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c index d8e875e..f378e17 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");