aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-max77686.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-29 19:18:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:21 -0400
commit0c58ff587738c25e4402a51df6575230e7f099e1 (patch)
tree97729288dd82648a3073eee779ebd90d4a1921bb /drivers/rtc/rtc-max77686.c
parent3e217b660281bbdf2db7e58725a4934b5635cb46 (diff)
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 <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-max77686.c')
-rw-r--r--drivers/rtc/rtc-max77686.c12
1 files changed, 1 insertions, 11 deletions
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 = {
624 .id_table = rtc_id, 624 .id_table = rtc_id,
625}; 625};
626 626
627static int __init max77686_rtc_init(void) 627module_platform_driver(max77686_rtc_driver);
628{
629 return platform_driver_register(&max77686_rtc_driver);
630}
631module_init(max77686_rtc_init);
632
633static void __exit max77686_rtc_exit(void)
634{
635 platform_driver_unregister(&max77686_rtc_driver);
636}
637module_exit(max77686_rtc_exit);
638 628
639MODULE_DESCRIPTION("Maxim MAX77686 RTC driver"); 629MODULE_DESCRIPTION("Maxim MAX77686 RTC driver");
640MODULE_AUTHOR("<woong.byun@samsung.com>"); 630MODULE_AUTHOR("<woong.byun@samsung.com>");