diff options
Diffstat (limited to 'drivers/hwmon/pmbus/max16064.c')
-rw-r--r-- | drivers/hwmon/pmbus/max16064.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hwmon/pmbus/max16064.c b/drivers/hwmon/pmbus/max16064.c index 1d77cf4d2d44..5cfe20f1e030 100644 --- a/drivers/hwmon/pmbus/max16064.c +++ b/drivers/hwmon/pmbus/max16064.c | |||
@@ -126,18 +126,8 @@ static struct i2c_driver max16064_driver = { | |||
126 | .id_table = max16064_id, | 126 | .id_table = max16064_id, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static int __init max16064_init(void) | 129 | module_i2c_driver(max16064_driver); |
130 | { | ||
131 | return i2c_add_driver(&max16064_driver); | ||
132 | } | ||
133 | |||
134 | static void __exit max16064_exit(void) | ||
135 | { | ||
136 | i2c_del_driver(&max16064_driver); | ||
137 | } | ||
138 | 130 | ||
139 | MODULE_AUTHOR("Guenter Roeck"); | 131 | MODULE_AUTHOR("Guenter Roeck"); |
140 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX16064"); | 132 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX16064"); |
141 | MODULE_LICENSE("GPL"); | 133 | MODULE_LICENSE("GPL"); |
142 | module_init(max16064_init); | ||
143 | module_exit(max16064_exit); | ||