diff options
Diffstat (limited to 'drivers/hwmon/max16065.c')
-rw-r--r-- | drivers/hwmon/max16065.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/max16065.c b/drivers/hwmon/max16065.c index f8e323ac6cb3..51edae93baa2 100644 --- a/drivers/hwmon/max16065.c +++ b/drivers/hwmon/max16065.c | |||
@@ -699,19 +699,8 @@ static struct i2c_driver max16065_driver = { | |||
699 | .id_table = max16065_id, | 699 | .id_table = max16065_id, |
700 | }; | 700 | }; |
701 | 701 | ||
702 | static int __init max16065_init(void) | 702 | module_i2c_driver(max16065_driver); |
703 | { | ||
704 | return i2c_add_driver(&max16065_driver); | ||
705 | } | ||
706 | |||
707 | static void __exit max16065_exit(void) | ||
708 | { | ||
709 | i2c_del_driver(&max16065_driver); | ||
710 | } | ||
711 | 703 | ||
712 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); | 704 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); |
713 | MODULE_DESCRIPTION("MAX16065 driver"); | 705 | MODULE_DESCRIPTION("MAX16065 driver"); |
714 | MODULE_LICENSE("GPL"); | 706 | MODULE_LICENSE("GPL"); |
715 | |||
716 | module_init(max16065_init); | ||
717 | module_exit(max16065_exit); | ||