diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/chips/max6875.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/i2c/chips/max6875.c b/drivers/i2c/chips/max6875.c index fe6b150ec4c2..c4f14d9623c4 100644 --- a/drivers/i2c/chips/max6875.c +++ b/drivers/i2c/chips/max6875.c | |||
@@ -37,7 +37,8 @@ | |||
37 | #include <linux/i2c-sensor.h> | 37 | #include <linux/i2c-sensor.h> |
38 | 38 | ||
39 | /* Addresses to scan */ | 39 | /* Addresses to scan */ |
40 | static unsigned short normal_i2c[] = {0x50, 0x52, I2C_CLIENT_END}; | 40 | /* No address scanned by default, as this could corrupt standard EEPROMS. */ |
41 | static unsigned short normal_i2c[] = {I2C_CLIENT_END}; | ||
41 | static unsigned int normal_isa[] = {I2C_CLIENT_ISA_END}; | 42 | static unsigned int normal_isa[] = {I2C_CLIENT_ISA_END}; |
42 | 43 | ||
43 | /* Insmod parameters */ | 44 | /* Insmod parameters */ |
@@ -369,6 +370,9 @@ static int max6875_detect(struct i2c_adapter *adapter, int address, int kind) | |||
369 | new_client->driver = &max6875_driver; | 370 | new_client->driver = &max6875_driver; |
370 | new_client->flags = 0; | 371 | new_client->flags = 0; |
371 | 372 | ||
373 | /* Prevent 24RF08 corruption */ | ||
374 | i2c_smbus_write_quick(new_client, 0); | ||
375 | |||
372 | /* Setup the user section */ | 376 | /* Setup the user section */ |
373 | data->blocks[max6875_eeprom_user].type = max6875_eeprom_user; | 377 | data->blocks[max6875_eeprom_user].type = max6875_eeprom_user; |
374 | data->blocks[max6875_eeprom_user].slices = USER_EEPROM_SLICES; | 378 | data->blocks[max6875_eeprom_user].slices = USER_EEPROM_SLICES; |