diff options
Diffstat (limited to 'drivers/hwmon/pmbus/max8688.c')
-rw-r--r-- | drivers/hwmon/pmbus/max8688.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/hwmon/pmbus/max8688.c b/drivers/hwmon/pmbus/max8688.c index e2b74bb399ba..f04454a42fdd 100644 --- a/drivers/hwmon/pmbus/max8688.c +++ b/drivers/hwmon/pmbus/max8688.c | |||
@@ -180,12 +180,6 @@ static int max8688_probe(struct i2c_client *client, | |||
180 | return pmbus_do_probe(client, id, &max8688_info); | 180 | return pmbus_do_probe(client, id, &max8688_info); |
181 | } | 181 | } |
182 | 182 | ||
183 | static int max8688_remove(struct i2c_client *client) | ||
184 | { | ||
185 | pmbus_do_remove(client); | ||
186 | return 0; | ||
187 | } | ||
188 | |||
189 | static const struct i2c_device_id max8688_id[] = { | 183 | static const struct i2c_device_id max8688_id[] = { |
190 | {"max8688", 0}, | 184 | {"max8688", 0}, |
191 | { } | 185 | { } |
@@ -199,22 +193,12 @@ static struct i2c_driver max8688_driver = { | |||
199 | .name = "max8688", | 193 | .name = "max8688", |
200 | }, | 194 | }, |
201 | .probe = max8688_probe, | 195 | .probe = max8688_probe, |
202 | .remove = max8688_remove, | 196 | .remove = pmbus_do_remove, |
203 | .id_table = max8688_id, | 197 | .id_table = max8688_id, |
204 | }; | 198 | }; |
205 | 199 | ||
206 | static int __init max8688_init(void) | 200 | module_i2c_driver(max8688_driver); |
207 | { | ||
208 | return i2c_add_driver(&max8688_driver); | ||
209 | } | ||
210 | |||
211 | static void __exit max8688_exit(void) | ||
212 | { | ||
213 | i2c_del_driver(&max8688_driver); | ||
214 | } | ||
215 | 201 | ||
216 | MODULE_AUTHOR("Guenter Roeck"); | 202 | MODULE_AUTHOR("Guenter Roeck"); |
217 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688"); | 203 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688"); |
218 | MODULE_LICENSE("GPL"); | 204 | MODULE_LICENSE("GPL"); |
219 | module_init(max8688_init); | ||
220 | module_exit(max8688_exit); | ||