diff options
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
-rw-r--r-- | drivers/rtc/rtc-pcf8563.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index 606fdfab34e2..bc0677de1996 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c | |||
@@ -252,20 +252,9 @@ static struct i2c_driver pcf8563_driver = { | |||
252 | .id_table = pcf8563_id, | 252 | .id_table = pcf8563_id, |
253 | }; | 253 | }; |
254 | 254 | ||
255 | static int __init pcf8563_init(void) | 255 | module_i2c_driver(pcf8563_driver); |
256 | { | ||
257 | return i2c_add_driver(&pcf8563_driver); | ||
258 | } | ||
259 | |||
260 | static void __exit pcf8563_exit(void) | ||
261 | { | ||
262 | i2c_del_driver(&pcf8563_driver); | ||
263 | } | ||
264 | 256 | ||
265 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); | 257 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); |
266 | MODULE_DESCRIPTION("Philips PCF8563/Epson RTC8564 RTC driver"); | 258 | MODULE_DESCRIPTION("Philips PCF8563/Epson RTC8564 RTC driver"); |
267 | MODULE_LICENSE("GPL"); | 259 | MODULE_LICENSE("GPL"); |
268 | MODULE_VERSION(DRV_VERSION); | 260 | MODULE_VERSION(DRV_VERSION); |
269 | |||
270 | module_init(pcf8563_init); | ||
271 | module_exit(pcf8563_exit); | ||