diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2013-07-03 18:07:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:08:00 -0400 |
commit | 5ee67484dede220d96c0b323c78d02c63fdfae44 (patch) | |
tree | 1aee70c0fe8b0cd2da0aa3e1e58cb0ac0c6781f6 /drivers/rtc/rtc-twl.c | |
parent | d3869ff684cb96ccfaf3c3a9a302fe3b7e976b02 (diff) |
drivers/rtc/rtc-twl.c: cleanup with module_platform_driver() conversion
Use module_platform_driver() to register the platform driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-twl.c')
-rw-r--r-- | drivers/rtc/rtc-twl.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index 8a04044a9c1c..02faf3c4e0d5 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c | |||
@@ -626,17 +626,7 @@ static struct platform_driver twl4030rtc_driver = { | |||
626 | }, | 626 | }, |
627 | }; | 627 | }; |
628 | 628 | ||
629 | static int __init twl_rtc_init(void) | 629 | module_platform_driver(twl4030rtc_driver); |
630 | { | ||
631 | return platform_driver_register(&twl4030rtc_driver); | ||
632 | } | ||
633 | module_init(twl_rtc_init); | ||
634 | |||
635 | static void __exit twl_rtc_exit(void) | ||
636 | { | ||
637 | platform_driver_unregister(&twl4030rtc_driver); | ||
638 | } | ||
639 | module_exit(twl_rtc_exit); | ||
640 | 630 | ||
641 | MODULE_AUTHOR("Texas Instruments, MontaVista Software"); | 631 | MODULE_AUTHOR("Texas Instruments, MontaVista Software"); |
642 | MODULE_LICENSE("GPL"); | 632 | MODULE_LICENSE("GPL"); |