diff options
Diffstat (limited to 'drivers/misc/ds1682.c')
-rw-r--r-- | drivers/misc/ds1682.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/ds1682.c b/drivers/misc/ds1682.c index a513f0aa6432..154b02e5094f 100644 --- a/drivers/misc/ds1682.c +++ b/drivers/misc/ds1682.c | |||
@@ -250,19 +250,8 @@ static struct i2c_driver ds1682_driver = { | |||
250 | .id_table = ds1682_id, | 250 | .id_table = ds1682_id, |
251 | }; | 251 | }; |
252 | 252 | ||
253 | static int __init ds1682_init(void) | 253 | module_i2c_driver(ds1682_driver); |
254 | { | ||
255 | return i2c_add_driver(&ds1682_driver); | ||
256 | } | ||
257 | |||
258 | static void __exit ds1682_exit(void) | ||
259 | { | ||
260 | i2c_del_driver(&ds1682_driver); | ||
261 | } | ||
262 | 254 | ||
263 | MODULE_AUTHOR("Grant Likely <grant.likely@secretlab.ca>"); | 255 | MODULE_AUTHOR("Grant Likely <grant.likely@secretlab.ca>"); |
264 | MODULE_DESCRIPTION("DS1682 Elapsed Time Indicator driver"); | 256 | MODULE_DESCRIPTION("DS1682 Elapsed Time Indicator driver"); |
265 | MODULE_LICENSE("GPL"); | 257 | MODULE_LICENSE("GPL"); |
266 | |||
267 | module_init(ds1682_init); | ||
268 | module_exit(ds1682_exit); | ||