diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-04-29 19:18:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:23 -0400 |
commit | 09c5a36bf62d9eee9f878b9d4c2895319bd39b7b (patch) | |
tree | 77bb7ad60a43117439822e313dd323385d01d5d3 /drivers/rtc/rtc-omap.c | |
parent | af5e7db68c590dfc48dabee023640f92f9c07462 (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.c | 12 |
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 | ||
553 | static int __init rtc_init(void) | 553 | module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe); |
554 | { | ||
555 | return platform_driver_probe(&omap_rtc_driver, omap_rtc_probe); | ||
556 | } | ||
557 | module_init(rtc_init); | ||
558 | |||
559 | static void __exit rtc_exit(void) | ||
560 | { | ||
561 | platform_driver_unregister(&omap_rtc_driver); | ||
562 | } | ||
563 | module_exit(rtc_exit); | ||
564 | 554 | ||
565 | MODULE_AUTHOR("George G. Davis (and others)"); | 555 | MODULE_AUTHOR("George G. Davis (and others)"); |
566 | MODULE_LICENSE("GPL"); | 556 | MODULE_LICENSE("GPL"); |