summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-omap.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-29 16:18:46 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 18:28:23 -0700
commit09c5a36bf62d9eee9f878b9d4c2895319bd39b7b (patch)
tree77bb7ad60a43117439822e313dd323385d01d5d3 /drivers/rtc/rtc-omap.c
parentaf5e7db68c590dfc48dabee023640f92f9c07462 (diff)
downloadlinux-09c5a36bf62d9eee9f878b9d4c2895319bd39b7b.tar.gz
linux-09c5a36bf62d9eee9f878b9d4c2895319bd39b7b.tar.bz2
linux-09c5a36bf62d9eee9f878b9d4c2895319bd39b7b.zip
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 = {
.id_table = omap_rtc_devtype,
};
-static int __init rtc_init(void)
-{
- return platform_driver_probe(&omap_rtc_driver, omap_rtc_probe);
-}
-module_init(rtc_init);
-
-static void __exit rtc_exit(void)
-{
- platform_driver_unregister(&omap_rtc_driver);
-}
-module_exit(rtc_exit);
+module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe);
MODULE_AUTHOR("George G. Davis (and others)");
MODULE_LICENSE("GPL");