diff options
Diffstat (limited to 'drivers/rtc/rtc-fm3130.c')
-rw-r--r-- | drivers/rtc/rtc-fm3130.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-fm3130.c b/drivers/rtc/rtc-fm3130.c index 4cf2e70c5078..86b6ecce99f0 100644 --- a/drivers/rtc/rtc-fm3130.c +++ b/drivers/rtc/rtc-fm3130.c | |||
@@ -565,17 +565,7 @@ static struct i2c_driver fm3130_driver = { | |||
565 | .id_table = fm3130_id, | 565 | .id_table = fm3130_id, |
566 | }; | 566 | }; |
567 | 567 | ||
568 | static int __init fm3130_init(void) | 568 | module_i2c_driver(fm3130_driver); |
569 | { | ||
570 | return i2c_add_driver(&fm3130_driver); | ||
571 | } | ||
572 | module_init(fm3130_init); | ||
573 | |||
574 | static void __exit fm3130_exit(void) | ||
575 | { | ||
576 | i2c_del_driver(&fm3130_driver); | ||
577 | } | ||
578 | module_exit(fm3130_exit); | ||
579 | 569 | ||
580 | MODULE_DESCRIPTION("RTC driver for FM3130"); | 570 | MODULE_DESCRIPTION("RTC driver for FM3130"); |
581 | MODULE_AUTHOR("Sergey Lapin <slapin@ossfans.org>"); | 571 | MODULE_AUTHOR("Sergey Lapin <slapin@ossfans.org>"); |