Skip to content

Commit

Permalink
i2c/max6875: Really prevent 24RF08 corruption
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Jean Delvare committed May 18, 2008
1 parent 875b0a4 commit 70455e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/i2c/chips/max6875.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ static int max6875_detect(struct i2c_adapter *adapter, int address, int kind)
fake_client->flags = 0;
strlcpy(fake_client->name, "max6875 subclient", I2C_NAME_SIZE);

/* Prevent 24RF08 corruption (in case of user error) */
i2c_smbus_write_quick(real_client, 0);

if ((err = i2c_attach_client(real_client)) != 0)
goto exit_kfree2;

Expand Down

0 comments on commit 70455e7

Please sign in to comment.