git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
drivers
/
i2c
/
chips
/
eeprom.c
diff --git
a/drivers/i2c/chips/eeprom.c
b/drivers/i2c/chips/eeprom.c
index
5d1492a
..
6617ff7
100644
(file)
--- a/
drivers/i2c/chips/eeprom.c
+++ b/
drivers/i2c/chips/eeprom.c
@@
-203,11
+203,12
@@
int eeprom_detect(struct i2c_adapter *adapter, int address, int kind)
new_client->driver = &eeprom_driver;
new_client->flags = 0;
new_client->driver = &eeprom_driver;
new_client->flags = 0;
+ /* prevent 24RF08 corruption */
+ i2c_smbus_write_quick(new_client, 0);
+
/* Now, we do the remaining detection. It is not there, unless you force
the checksum to work out. */
if (checksum) {
/* Now, we do the remaining detection. It is not there, unless you force
the checksum to work out. */
if (checksum) {
- /* prevent 24RF08 corruption */
- i2c_smbus_write_quick(new_client, 0);
cs = 0;
for (i = 0; i <= 0x3e; i++)
cs += i2c_smbus_read_byte_data(new_client, i);
cs = 0;
for (i = 0; i <= 0x3e; i++)
cs += i2c_smbus_read_byte_data(new_client, i);