Commit 70455e790391dac85d9b483a9e286a40df1ecc7f

Authored by Jean Delvare
Committed by Jean Delvare
1 parent 875b0a473c

i2c/max6875: Really prevent 24RF08 corruption

i2c-core takes care of the possible corruption of 24RF08 chips for
quite some times, so device devices no longer need to do it. And they
really should not, as applying the prevention twice voids it.

I thought that I had fixed all drivers long ago but apparently I had
missed that one.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Ben Gardner <bgardner@wabtec.com>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

drivers/i2c/chips/max6875.c
... ... @@ -207,9 +207,6 @@
207 207 fake_client->flags = 0;
208 208 strlcpy(fake_client->name, "max6875 subclient", I2C_NAME_SIZE);
209 209  
210   - /* Prevent 24RF08 corruption (in case of user error) */
211   - i2c_smbus_write_quick(real_client, 0);
212   -
213 210 if ((err = i2c_attach_client(real_client)) != 0)
214 211 goto exit_kfree2;
215 212