diff options
| -rw-r--r-- | drivers/hwmon/asc7621.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/atxp1.c | 2 | ||||
| -rw-r--r-- | drivers/hwmon/lm77.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/lm83.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/lm87.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/lm92.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/lm93.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/max1619.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/w83792d.c | 1 | ||||
| -rw-r--r-- | drivers/hwmon/w83l785ts.c | 4 |
10 files changed, 0 insertions, 14 deletions
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c index 8d9f2a0e8efe..71463689d163 100644 --- a/drivers/hwmon/asc7621.c +++ b/drivers/hwmon/asc7621.c | |||
| @@ -1115,7 +1115,6 @@ asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
| 1115 | return -ENOMEM; | 1115 | return -ENOMEM; |
| 1116 | 1116 | ||
| 1117 | i2c_set_clientdata(client, data); | 1117 | i2c_set_clientdata(client, data); |
| 1118 | data->valid = 0; | ||
| 1119 | mutex_init(&data->update_lock); | 1118 | mutex_init(&data->update_lock); |
| 1120 | 1119 | ||
| 1121 | /* Initialize the asc7621 chip */ | 1120 | /* Initialize the asc7621 chip */ |
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c index ddff02e3e66f..6edce42c61d5 100644 --- a/drivers/hwmon/atxp1.c +++ b/drivers/hwmon/atxp1.c | |||
| @@ -353,8 +353,6 @@ static int atxp1_probe(struct i2c_client *new_client, | |||
| 353 | data->vrm = vid_which_vrm(); | 353 | data->vrm = vid_which_vrm(); |
| 354 | 354 | ||
| 355 | i2c_set_clientdata(new_client, data); | 355 | i2c_set_clientdata(new_client, data); |
| 356 | data->valid = 0; | ||
| 357 | |||
| 358 | mutex_init(&data->update_lock); | 356 | mutex_init(&data->update_lock); |
| 359 | 357 | ||
| 360 | /* Register sysfs hooks */ | 358 | /* Register sysfs hooks */ |
diff --git a/drivers/hwmon/lm77.c b/drivers/hwmon/lm77.c index f17beb5e6dd6..502771c06fd9 100644 --- a/drivers/hwmon/lm77.c +++ b/drivers/hwmon/lm77.c | |||
| @@ -348,7 +348,6 @@ static int lm77_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
| 348 | return -ENOMEM; | 348 | return -ENOMEM; |
| 349 | 349 | ||
| 350 | i2c_set_clientdata(client, data); | 350 | i2c_set_clientdata(client, data); |
| 351 | data->valid = 0; | ||
| 352 | mutex_init(&data->update_lock); | 351 | mutex_init(&data->update_lock); |
| 353 | 352 | ||
| 354 | /* Initialize the LM77 chip */ | 353 | /* Initialize the LM77 chip */ |
diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c index abd270243ba7..be02155788c3 100644 --- a/drivers/hwmon/lm83.c +++ b/drivers/hwmon/lm83.c | |||
| @@ -349,7 +349,6 @@ static int lm83_probe(struct i2c_client *new_client, | |||
| 349 | return -ENOMEM; | 349 | return -ENOMEM; |
| 350 | 350 | ||
| 351 | i2c_set_clientdata(new_client, data); | 351 | i2c_set_clientdata(new_client, data); |
| 352 | data->valid = 0; | ||
| 353 | mutex_init(&data->update_lock); | 352 | mutex_init(&data->update_lock); |
| 354 | 353 | ||
| 355 | /* | 354 | /* |
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c index 4c5f20231c1a..ba1d83d48056 100644 --- a/drivers/hwmon/lm87.c +++ b/drivers/hwmon/lm87.c | |||
| @@ -903,7 +903,6 @@ static int lm87_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
| 903 | return -ENOMEM; | 903 | return -ENOMEM; |
| 904 | 904 | ||
| 905 | i2c_set_clientdata(client, data); | 905 | i2c_set_clientdata(client, data); |
| 906 | data->valid = 0; | ||
| 907 | mutex_init(&data->update_lock); | 906 | mutex_init(&data->update_lock); |
| 908 | 907 | ||
| 909 | /* Initialize the LM87 chip */ | 908 | /* Initialize the LM87 chip */ |
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c index 9d0e87a4f0cb..b9022db6511a 100644 --- a/drivers/hwmon/lm92.c +++ b/drivers/hwmon/lm92.c | |||
| @@ -380,7 +380,6 @@ static int lm92_probe(struct i2c_client *new_client, | |||
| 380 | return -ENOMEM; | 380 | return -ENOMEM; |
| 381 | 381 | ||
| 382 | i2c_set_clientdata(new_client, data); | 382 | i2c_set_clientdata(new_client, data); |
| 383 | data->valid = 0; | ||
| 384 | mutex_init(&data->update_lock); | 383 | mutex_init(&data->update_lock); |
| 385 | 384 | ||
| 386 | /* Initialize the chipset */ | 385 | /* Initialize the chipset */ |
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index 6f1c6c0dbaf5..adf23165a6a7 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c | |||
| @@ -2754,7 +2754,6 @@ static int lm93_probe(struct i2c_client *client, | |||
| 2754 | i2c_set_clientdata(client, data); | 2754 | i2c_set_clientdata(client, data); |
| 2755 | 2755 | ||
| 2756 | /* housekeeping */ | 2756 | /* housekeeping */ |
| 2757 | data->valid = 0; | ||
| 2758 | data->update = update; | 2757 | data->update = update; |
| 2759 | mutex_init(&data->update_lock); | 2758 | mutex_init(&data->update_lock); |
| 2760 | 2759 | ||
diff --git a/drivers/hwmon/max1619.c b/drivers/hwmon/max1619.c index 6638e997f83f..4c23afe113e2 100644 --- a/drivers/hwmon/max1619.c +++ b/drivers/hwmon/max1619.c | |||
| @@ -273,7 +273,6 @@ static int max1619_probe(struct i2c_client *new_client, | |||
| 273 | return -ENOMEM; | 273 | return -ENOMEM; |
| 274 | 274 | ||
| 275 | i2c_set_clientdata(new_client, data); | 275 | i2c_set_clientdata(new_client, data); |
| 276 | data->valid = 0; | ||
| 277 | mutex_init(&data->update_lock); | 276 | mutex_init(&data->update_lock); |
| 278 | 277 | ||
| 279 | /* Initialize the MAX1619 chip */ | 278 | /* Initialize the MAX1619 chip */ |
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c index df585808adb6..4068db4d9580 100644 --- a/drivers/hwmon/w83792d.c +++ b/drivers/hwmon/w83792d.c | |||
| @@ -1376,7 +1376,6 @@ w83792d_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
| 1376 | return -ENOMEM; | 1376 | return -ENOMEM; |
| 1377 | 1377 | ||
| 1378 | i2c_set_clientdata(client, data); | 1378 | i2c_set_clientdata(client, data); |
| 1379 | data->valid = 0; | ||
| 1380 | mutex_init(&data->update_lock); | 1379 | mutex_init(&data->update_lock); |
| 1381 | 1380 | ||
| 1382 | err = w83792d_detect_subclients(client); | 1381 | err = w83792d_detect_subclients(client); |
diff --git a/drivers/hwmon/w83l785ts.c b/drivers/hwmon/w83l785ts.c index 6384b268f590..ac3043122011 100644 --- a/drivers/hwmon/w83l785ts.c +++ b/drivers/hwmon/w83l785ts.c | |||
| @@ -188,12 +188,8 @@ static int w83l785ts_probe(struct i2c_client *client, | |||
| 188 | return -ENOMEM; | 188 | return -ENOMEM; |
| 189 | 189 | ||
| 190 | i2c_set_clientdata(client, data); | 190 | i2c_set_clientdata(client, data); |
| 191 | data->valid = 0; | ||
| 192 | mutex_init(&data->update_lock); | 191 | mutex_init(&data->update_lock); |
| 193 | 192 | ||
| 194 | /* Default values in case the first read fails (unlikely). */ | ||
| 195 | data->temp[1] = data->temp[0] = 0; | ||
| 196 | |||
| 197 | /* | 193 | /* |
| 198 | * Initialize the W83L785TS chip | 194 | * Initialize the W83L785TS chip |
| 199 | * Nothing yet, assume it is already started. | 195 | * Nothing yet, assume it is already started. |
