diff options
Diffstat (limited to 'drivers/hwmon/pmbus/adm1275.c')
-rw-r--r-- | drivers/hwmon/pmbus/adm1275.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c index 81c7c2ead6f3..fe52c3cf87ba 100644 --- a/drivers/hwmon/pmbus/adm1275.c +++ b/drivers/hwmon/pmbus/adm1275.c | |||
@@ -326,18 +326,8 @@ static struct i2c_driver adm1275_driver = { | |||
326 | .id_table = adm1275_id, | 326 | .id_table = adm1275_id, |
327 | }; | 327 | }; |
328 | 328 | ||
329 | static int __init adm1275_init(void) | 329 | module_i2c_driver(adm1275_driver); |
330 | { | ||
331 | return i2c_add_driver(&adm1275_driver); | ||
332 | } | ||
333 | |||
334 | static void __exit adm1275_exit(void) | ||
335 | { | ||
336 | i2c_del_driver(&adm1275_driver); | ||
337 | } | ||
338 | 330 | ||
339 | MODULE_AUTHOR("Guenter Roeck"); | 331 | MODULE_AUTHOR("Guenter Roeck"); |
340 | MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles"); | 332 | MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles"); |
341 | MODULE_LICENSE("GPL"); | 333 | MODULE_LICENSE("GPL"); |
342 | module_init(adm1275_init); | ||
343 | module_exit(adm1275_exit); | ||