aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/max8688.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/pmbus/max8688.c')
-rw-r--r--drivers/hwmon/pmbus/max8688.c20
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
183static int max8688_remove(struct i2c_client *client)
184{
185 pmbus_do_remove(client);
186 return 0;
187}
188
189static const struct i2c_device_id max8688_id[] = { 183static 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
206static int __init max8688_init(void) 200module_i2c_driver(max8688_driver);
207{
208 return i2c_add_driver(&max8688_driver);
209}
210
211static void __exit max8688_exit(void)
212{
213 i2c_del_driver(&max8688_driver);
214}
215 201
216MODULE_AUTHOR("Guenter Roeck"); 202MODULE_AUTHOR("Guenter Roeck");
217MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688"); 203MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688");
218MODULE_LICENSE("GPL"); 204MODULE_LICENSE("GPL");
219module_init(max8688_init);
220module_exit(max8688_exit);