git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i2c: Timeouts off by 1
[pandora-kernel.git]
/
drivers
/
i2c
/
busses
/
i2c-ali15x3.c
diff --git
a/drivers/i2c/busses/i2c-ali15x3.c
b/drivers/i2c/busses/i2c-ali15x3.c
index
39066de
..
d627fce
100644
(file)
--- a/
drivers/i2c/busses/i2c-ali15x3.c
+++ b/
drivers/i2c/busses/i2c-ali15x3.c
@@
-306,7
+306,7
@@
static int ali15x3_transaction(struct i2c_adapter *adap)
&& (timeout++ < MAX_TIMEOUT));
/* If the SMBus is still busy, we give up */
- if (timeout >
=
MAX_TIMEOUT) {
+ if (timeout > MAX_TIMEOUT) {
result = -ETIMEDOUT;
dev_err(&adap->dev, "SMBus Timeout!\n");
}