Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ff4443f authored by Felipe Balbi's avatar Felipe Balbi Committed by Wolfram Sang
Browse files

i2c: omap: simplify errata check



omap_i2c_dev is allocated with kzalloc(),
so we need not initialize b_hw to zero.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 079d8af2
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1095,9 +1095,7 @@ omap_i2c_probe(struct platform_device *pdev)


		dev->fifo_size = (dev->fifo_size / 2);
		dev->fifo_size = (dev->fifo_size / 2);


		if (dev->rev >= OMAP_I2C_REV_ON_3630_4430)
		if (dev->rev < OMAP_I2C_REV_ON_3630_4430)
			dev->b_hw = 0; /* Disable hardware fixes */
		else
			dev->b_hw = 1; /* Enable hardware fixes */
			dev->b_hw = 1; /* Enable hardware fixes */


		/* calculate wakeup latency constraint for MPU */
		/* calculate wakeup latency constraint for MPU */