diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index d09512e4f488..c6db76ec5a22 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -615,11 +615,10 @@ static int omap_i2c_xfer_msg(struct i2c_adapter *adap, | |||
615 | if (dev->cmd_err & OMAP_I2C_STAT_NACK) { | 615 | if (dev->cmd_err & OMAP_I2C_STAT_NACK) { |
616 | if (msg->flags & I2C_M_IGNORE_NAK) | 616 | if (msg->flags & I2C_M_IGNORE_NAK) |
617 | return 0; | 617 | return 0; |
618 | if (stop) { | 618 | |
619 | w = omap_i2c_read_reg(dev, OMAP_I2C_CON_REG); | 619 | w = omap_i2c_read_reg(dev, OMAP_I2C_CON_REG); |
620 | w |= OMAP_I2C_CON_STP; | 620 | w |= OMAP_I2C_CON_STP; |
621 | omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, w); | 621 | omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, w); |
622 | } | ||
623 | return -EREMOTEIO; | 622 | return -EREMOTEIO; |
624 | } | 623 | } |
625 | return -EIO; | 624 | return -EIO; |