aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm87.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm87.c')
-rw-r--r--drivers/hwmon/lm87.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c
index 26fd0b33beaf..3152c006ce06 100644
--- a/drivers/hwmon/lm87.c
+++ b/drivers/hwmon/lm87.c
@@ -161,8 +161,10 @@ static struct lm87_data *lm87_update_device(struct device *dev);
161 */ 161 */
162 162
163static struct i2c_driver lm87_driver = { 163static struct i2c_driver lm87_driver = {
164 .owner = THIS_MODULE, 164 .driver = {
165 .name = "lm87", 165 .owner = THIS_MODULE,
166 .name = "lm87",
167 },
166 .id = I2C_DRIVERID_LM87, 168 .id = I2C_DRIVERID_LM87,
167 .attach_adapter = lm87_attach_adapter, 169 .attach_adapter = lm87_attach_adapter,
168 .detach_client = lm87_detach_client, 170 .detach_client = lm87_detach_client,