From: Jingoo Han Date: Tue, 26 Mar 2013 23:25:13 +0000 (+1100) Subject: drivers/rtc/rtc-max77686.c: use module_platform_driver() X-Git-Tag: next-20130404~3^2~269 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c182c489839f856382657631087b6cccfb0ee801;p=karo-tx-linux.git drivers/rtc/rtc-max77686.c: use module_platform_driver() Use module_platform_driver() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index 6b1337f9baf4..a8e31fc833e2 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -624,17 +624,7 @@ static struct platform_driver max77686_rtc_driver = { .id_table = rtc_id, }; -static int __init max77686_rtc_init(void) -{ - return platform_driver_register(&max77686_rtc_driver); -} -module_init(max77686_rtc_init); - -static void __exit max77686_rtc_exit(void) -{ - platform_driver_unregister(&max77686_rtc_driver); -} -module_exit(max77686_rtc_exit); +module_platform_driver(max77686_rtc_driver); MODULE_DESCRIPTION("Maxim MAX77686 RTC driver"); MODULE_AUTHOR("");