diff options
Diffstat (limited to 'drivers/rtc/rtc-rx8025.c')
-rw-r--r-- | drivers/rtc/rtc-rx8025.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index fde172fb2abe..0de902dc1cd5 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c | |||
@@ -644,19 +644,8 @@ static struct i2c_driver rx8025_driver = { | |||
644 | .id_table = rx8025_id, | 644 | .id_table = rx8025_id, |
645 | }; | 645 | }; |
646 | 646 | ||
647 | static int __init rx8025_init(void) | 647 | module_i2c_driver(rx8025_driver); |
648 | { | ||
649 | return i2c_add_driver(&rx8025_driver); | ||
650 | } | ||
651 | |||
652 | static void __exit rx8025_exit(void) | ||
653 | { | ||
654 | i2c_del_driver(&rx8025_driver); | ||
655 | } | ||
656 | 648 | ||
657 | MODULE_AUTHOR("Wolfgang Grandegger <wg@grandegger.com>"); | 649 | MODULE_AUTHOR("Wolfgang Grandegger <wg@grandegger.com>"); |
658 | MODULE_DESCRIPTION("RX-8025 SA/NB RTC driver"); | 650 | MODULE_DESCRIPTION("RX-8025 SA/NB RTC driver"); |
659 | MODULE_LICENSE("GPL"); | 651 | MODULE_LICENSE("GPL"); |
660 | |||
661 | module_init(rx8025_init); | ||
662 | module_exit(rx8025_exit); | ||