diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 9bd06f2c4250..a40c2ff75fa7 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -593,12 +593,11 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_bus *i2c_bus, unsigned long flags; int arb_stat; - tegra_i2c_flush_fifos(i2c_dev); - - if (msg->len == 0) return -EINVAL; + tegra_i2c_flush_fifos(i2c_dev); + i2c_dev->msg_buf = msg->buf; i2c_dev->msg_buf_remaining = msg->len; i2c_dev->msg_err = I2C_ERR_NONE; |