diff options
Diffstat (limited to 'drivers/hwmon/lm93.c')
-rw-r--r-- | drivers/hwmon/lm93.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index 124dd7cea54c..6669255aadcf 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c | |||
@@ -145,7 +145,6 @@ | |||
145 | static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; | 145 | static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; |
146 | 146 | ||
147 | /* Insmod parameters */ | 147 | /* Insmod parameters */ |
148 | I2C_CLIENT_INSMOD_1(lm93); | ||
149 | 148 | ||
150 | static int disable_block; | 149 | static int disable_block; |
151 | module_param(disable_block, bool, 0); | 150 | module_param(disable_block, bool, 0); |
@@ -2501,8 +2500,7 @@ static void lm93_init_client(struct i2c_client *client) | |||
2501 | } | 2500 | } |
2502 | 2501 | ||
2503 | /* Return 0 if detection is successful, -ENODEV otherwise */ | 2502 | /* Return 0 if detection is successful, -ENODEV otherwise */ |
2504 | static int lm93_detect(struct i2c_client *client, int kind, | 2503 | static int lm93_detect(struct i2c_client *client, struct i2c_board_info *info) |
2505 | struct i2c_board_info *info) | ||
2506 | { | 2504 | { |
2507 | struct i2c_adapter *adapter = client->adapter; | 2505 | struct i2c_adapter *adapter = client->adapter; |
2508 | int mfr, ver; | 2506 | int mfr, ver; |
@@ -2603,7 +2601,7 @@ static int lm93_remove(struct i2c_client *client) | |||
2603 | } | 2601 | } |
2604 | 2602 | ||
2605 | static const struct i2c_device_id lm93_id[] = { | 2603 | static const struct i2c_device_id lm93_id[] = { |
2606 | { "lm93", lm93 }, | 2604 | { "lm93", 0 }, |
2607 | { } | 2605 | { } |
2608 | }; | 2606 | }; |
2609 | MODULE_DEVICE_TABLE(i2c, lm93_id); | 2607 | MODULE_DEVICE_TABLE(i2c, lm93_id); |
@@ -2617,7 +2615,7 @@ static struct i2c_driver lm93_driver = { | |||
2617 | .remove = lm93_remove, | 2615 | .remove = lm93_remove, |
2618 | .id_table = lm93_id, | 2616 | .id_table = lm93_id, |
2619 | .detect = lm93_detect, | 2617 | .detect = lm93_detect, |
2620 | .address_data = &addr_data, | 2618 | .address_list = normal_i2c, |
2621 | }; | 2619 | }; |
2622 | 2620 | ||
2623 | static int __init lm93_init(void) | 2621 | static int __init lm93_init(void) |