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
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
drivers
/
i2c
/
algos
/
i2c-algo-pcf.c
diff --git
a/drivers/i2c/algos/i2c-algo-pcf.c
b/drivers/i2c/algos/i2c-algo-pcf.c
index
5b24930
..
6e498df
100644
(file)
--- a/
drivers/i2c/algos/i2c-algo-pcf.c
+++ b/
drivers/i2c/algos/i2c-algo-pcf.c
@@
-479,11
+479,9
@@
int i2c_pcf_add_bus(struct i2c_adapter *adap)
adap->timeout = 100; /* default values, should */
adap->retries = 3; /* be replaced by defines */
adap->timeout = 100; /* default values, should */
adap->retries = 3; /* be replaced by defines */
- if ((rval = pcf_init_8584(pcf_adap)))
- return rval;
-
- rval = i2c_add_adapter(adap);
-
+ rval = pcf_init_8584(pcf_adap);
+ if (!rval)
+ i2c_add_adapter(adap);
return rval;
}
return rval;
}