aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-omap.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-29 19:18:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:23 -0400
commit09c5a36bf62d9eee9f878b9d4c2895319bd39b7b (patch)
tree77bb7ad60a43117439822e313dd323385d01d5d3 /drivers/rtc/rtc-omap.c
parentaf5e7db68c590dfc48dabee023640f92f9c07462 (diff)
rtc: rtc-omap: use module_platform_driver_probe()
Use module_platform_driver_probe() 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-omap.c')
-rw-r--r--drivers/rtc/rtc-omap.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index 600971407aac..172cc5ca7489 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -550,17 +550,7 @@ static struct platform_driver omap_rtc_driver = {
550 .id_table = omap_rtc_devtype, 550 .id_table = omap_rtc_devtype,
551}; 551};
552 552
553static int __init rtc_init(void) 553module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe);
554{
555 return platform_driver_probe(&omap_rtc_driver, omap_rtc_probe);
556}
557module_init(rtc_init);
558
559static void __exit rtc_exit(void)
560{
561 platform_driver_unregister(&omap_rtc_driver);
562}
563module_exit(rtc_exit);
564 554
565MODULE_AUTHOR("George G. Davis (and others)"); 555MODULE_AUTHOR("George G. Davis (and others)");
566MODULE_LICENSE("GPL"); 556MODULE_LICENSE("GPL");