diff options
author | Felipe Balbi <balbi@ti.com> | 2012-09-12 06:58:07 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-09-12 09:03:12 -0400 |
commit | 3ff4443f888207359a561db60a9cb96aa136b8f3 (patch) | |
tree | 01b92458abb2ab73bb7bddcafcd4b58e4f4dfd20 /drivers/i2c | |
parent | 079d8af24b948261e1dae5d7df6b31b7bf205cb4 (diff) |
i2c: omap: simplify errata check
omap_i2c_dev is allocated with kzalloc(),
so we need not initialize b_hw to zero.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 3be147ab4eb9..7918e48c7fd3 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -1095,9 +1095,7 @@ omap_i2c_probe(struct platform_device *pdev) | |||
1095 | 1095 | ||
1096 | dev->fifo_size = (dev->fifo_size / 2); | 1096 | dev->fifo_size = (dev->fifo_size / 2); |
1097 | 1097 | ||
1098 | if (dev->rev >= OMAP_I2C_REV_ON_3630_4430) | 1098 | if (dev->rev < OMAP_I2C_REV_ON_3630_4430) |
1099 | dev->b_hw = 0; /* Disable hardware fixes */ | ||
1100 | else | ||
1101 | dev->b_hw = 1; /* Enable hardware fixes */ | 1099 | dev->b_hw = 1; /* Enable hardware fixes */ |
1102 | 1100 | ||
1103 | /* calculate wakeup latency constraint for MPU */ | 1101 | /* calculate wakeup latency constraint for MPU */ |