aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-max8925.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-max8925.c')
-rw-r--r--drivers/rtc/rtc-max8925.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-max8925.c b/drivers/rtc/rtc-max8925.c
index 3bc046f427e0..4a5529346b47 100644
--- a/drivers/rtc/rtc-max8925.c
+++ b/drivers/rtc/rtc-max8925.c
@@ -299,17 +299,7 @@ static struct platform_driver max8925_rtc_driver = {
299 .remove = __devexit_p(max8925_rtc_remove), 299 .remove = __devexit_p(max8925_rtc_remove),
300}; 300};
301 301
302static int __init max8925_rtc_init(void) 302module_platform_driver(max8925_rtc_driver);
303{
304 return platform_driver_register(&max8925_rtc_driver);
305}
306module_init(max8925_rtc_init);
307
308static void __exit max8925_rtc_exit(void)
309{
310 platform_driver_unregister(&max8925_rtc_driver);
311}
312module_exit(max8925_rtc_exit);
313 303
314MODULE_DESCRIPTION("Maxim MAX8925 RTC driver"); 304MODULE_DESCRIPTION("Maxim MAX8925 RTC driver");
315MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>"); 305MODULE_AUTHOR("Haojian Zhuang <haojian.zhuang@marvell.com>");