aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-omap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 642a233a6c8..5df938ff0e9 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -384,9 +384,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
384 * REVISIT: Some wkup sources might not be needed. 384 * REVISIT: Some wkup sources might not be needed.
385 */ 385 */
386 dev->westate = OMAP_I2C_WE_ALL; 386 dev->westate = OMAP_I2C_WE_ALL;
387 if (dev->rev < OMAP_I2C_REV_ON_3530_4430) 387 omap_i2c_write_reg(dev, OMAP_I2C_WE_REG,
388 omap_i2c_write_reg(dev, OMAP_I2C_WE_REG, 388 dev->westate);
389 dev->westate);
390 } 389 }
391 } 390 }
392 omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, 0); 391 omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, 0);