[PATCH 1/2] i2c-omap: Fix i2c_xfer for 1 msg

Ladislav Michl
2006-01-24T12:46:54Z

omap_i2c_xfer is supposed to return number of messages successfuly
transfered. Remove bogus condition which causes it to fail when
transfering one message.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index fb41255..b021073 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -403,7 +403,7 @@ omap_i2c_xfer(struct i2c_adapter *adap,
break;
}

- if (r == 0 && num > 1)
+ if (r == 0)
r = num;
out:
omap_i2c_disable_clocks(dev);