diff options
Diffstat (limited to 'drivers/hwmon/lm73.c')
-rw-r--r-- | drivers/hwmon/lm73.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c index 0bf8b2a8e9f0..c5f39ba103c0 100644 --- a/drivers/hwmon/lm73.c +++ b/drivers/hwmon/lm73.c | |||
@@ -27,9 +27,6 @@ | |||
27 | static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4c, | 27 | static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4c, |
28 | 0x4d, 0x4e, I2C_CLIENT_END }; | 28 | 0x4d, 0x4e, I2C_CLIENT_END }; |
29 | 29 | ||
30 | /* Insmod parameters */ | ||
31 | I2C_CLIENT_INSMOD_1(lm73); | ||
32 | |||
33 | /* LM73 registers */ | 30 | /* LM73 registers */ |
34 | #define LM73_REG_INPUT 0x00 | 31 | #define LM73_REG_INPUT 0x00 |
35 | #define LM73_REG_CONF 0x01 | 32 | #define LM73_REG_CONF 0x01 |
@@ -145,13 +142,13 @@ static int lm73_remove(struct i2c_client *client) | |||
145 | } | 142 | } |
146 | 143 | ||
147 | static const struct i2c_device_id lm73_ids[] = { | 144 | static const struct i2c_device_id lm73_ids[] = { |
148 | { "lm73", lm73 }, | 145 | { "lm73", 0 }, |
149 | { /* LIST END */ } | 146 | { /* LIST END */ } |
150 | }; | 147 | }; |
151 | MODULE_DEVICE_TABLE(i2c, lm73_ids); | 148 | MODULE_DEVICE_TABLE(i2c, lm73_ids); |
152 | 149 | ||
153 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 150 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
154 | static int lm73_detect(struct i2c_client *new_client, int kind, | 151 | static int lm73_detect(struct i2c_client *new_client, |
155 | struct i2c_board_info *info) | 152 | struct i2c_board_info *info) |
156 | { | 153 | { |
157 | struct i2c_adapter *adapter = new_client->adapter; | 154 | struct i2c_adapter *adapter = new_client->adapter; |
@@ -182,7 +179,7 @@ static struct i2c_driver lm73_driver = { | |||
182 | .remove = lm73_remove, | 179 | .remove = lm73_remove, |
183 | .id_table = lm73_ids, | 180 | .id_table = lm73_ids, |
184 | .detect = lm73_detect, | 181 | .detect = lm73_detect, |
185 | .address_data = &addr_data, | 182 | .address_list = normal_i2c, |
186 | }; | 183 | }; |
187 | 184 | ||
188 | /* module glue */ | 185 | /* module glue */ |