aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-twl.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2013-07-03 18:07:56 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:08:00 -0400
commit5ee67484dede220d96c0b323c78d02c63fdfae44 (patch)
tree1aee70c0fe8b0cd2da0aa3e1e58cb0ac0c6781f6 /drivers/rtc/rtc-twl.c
parentd3869ff684cb96ccfaf3c3a9a302fe3b7e976b02 (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.c12
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
629static int __init twl_rtc_init(void) 629module_platform_driver(twl4030rtc_driver);
630{
631 return platform_driver_register(&twl4030rtc_driver);
632}
633module_init(twl_rtc_init);
634
635static void __exit twl_rtc_exit(void)
636{
637 platform_driver_unregister(&twl4030rtc_driver);
638}
639module_exit(twl_rtc_exit);
640 630
641MODULE_AUTHOR("Texas Instruments, MontaVista Software"); 631MODULE_AUTHOR("Texas Instruments, MontaVista Software");
642MODULE_LICENSE("GPL"); 632MODULE_LICENSE("GPL");