diff options
Diffstat (limited to 'drivers/rtc/rtc-ds3232.c')
-rw-r--r-- | drivers/rtc/rtc-ds3232.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c index 27b7bf672ac6..e1945095814e 100644 --- a/drivers/rtc/rtc-ds3232.c +++ b/drivers/rtc/rtc-ds3232.c | |||
@@ -473,18 +473,7 @@ static struct i2c_driver ds3232_driver = { | |||
473 | .id_table = ds3232_id, | 473 | .id_table = ds3232_id, |
474 | }; | 474 | }; |
475 | 475 | ||
476 | static int __init ds3232_init(void) | 476 | module_i2c_driver(ds3232_driver); |
477 | { | ||
478 | return i2c_add_driver(&ds3232_driver); | ||
479 | } | ||
480 | |||
481 | static void __exit ds3232_exit(void) | ||
482 | { | ||
483 | i2c_del_driver(&ds3232_driver); | ||
484 | } | ||
485 | |||
486 | module_init(ds3232_init); | ||
487 | module_exit(ds3232_exit); | ||
488 | 477 | ||
489 | MODULE_AUTHOR("Srikanth Srinivasan <srikanth.srinivasan@freescale.com>"); | 478 | MODULE_AUTHOR("Srikanth Srinivasan <srikanth.srinivasan@freescale.com>"); |
490 | MODULE_DESCRIPTION("Maxim/Dallas DS3232 RTC Driver"); | 479 | MODULE_DESCRIPTION("Maxim/Dallas DS3232 RTC Driver"); |