diff options
Diffstat (limited to 'drivers/rtc/rtc-max6900.c')
-rw-r--r-- | drivers/rtc/rtc-max6900.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/rtc/rtc-max6900.c b/drivers/rtc/rtc-max6900.c index 486142c2637a..a00e33204b91 100644 --- a/drivers/rtc/rtc-max6900.c +++ b/drivers/rtc/rtc-max6900.c | |||
@@ -261,20 +261,9 @@ static struct i2c_driver max6900_driver = { | |||
261 | .id_table = max6900_id, | 261 | .id_table = max6900_id, |
262 | }; | 262 | }; |
263 | 263 | ||
264 | static int __init max6900_init(void) | 264 | module_i2c_driver(max6900_driver); |
265 | { | ||
266 | return i2c_add_driver(&max6900_driver); | ||
267 | } | ||
268 | |||
269 | static void __exit max6900_exit(void) | ||
270 | { | ||
271 | i2c_del_driver(&max6900_driver); | ||
272 | } | ||
273 | 265 | ||
274 | MODULE_DESCRIPTION("Maxim MAX6900 RTC driver"); | 266 | MODULE_DESCRIPTION("Maxim MAX6900 RTC driver"); |
275 | MODULE_AUTHOR("Dale Farnsworth <dale@farnsworth.org>"); | 267 | MODULE_AUTHOR("Dale Farnsworth <dale@farnsworth.org>"); |
276 | MODULE_LICENSE("GPL"); | 268 | MODULE_LICENSE("GPL"); |
277 | MODULE_VERSION(DRV_VERSION); | 269 | MODULE_VERSION(DRV_VERSION); |
278 | |||
279 | module_init(max6900_init); | ||
280 | module_exit(max6900_exit); | ||