diff options
-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"); |