diff options
author | Shubhrajyoti D <shubhrajyoti@ti.com> | 2012-11-05 17:53:37 +0530 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-11-14 17:44:39 +0100 |
commit | a748021ccbd2bb9b2b818a7fc67b19187d04bdf2 (patch) | |
tree | 4dbd0afa20f74b3139315e996d4c780403cf5af8 /drivers/i2c | |
parent | 47dcd0161a0b37bf0299473585fc5030d3f45b64 (diff) | |
download | linux-a748021ccbd2bb9b2b818a7fc67b19187d04bdf2.tar.gz linux-a748021ccbd2bb9b2b818a7fc67b19187d04bdf2.tar.bz2 linux-a748021ccbd2bb9b2b818a7fc67b19187d04bdf2.zip |
i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207
The errata i207 is enabled for 2430 and 3xxx. Use the revision check
to enable the erratum instead.
Reviewed-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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index bf0569eefeb8..7c409606f20c 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1176,7 +1176,8 @@ omap_i2c_probe(struct platform_device *pdev) dev->errata = 0; - if (dev->flags & OMAP_I2C_FLAG_APPLY_ERRATA_I207) + if (dev->rev >= OMAP_I2C_REV_ON_2430 && + dev->rev < OMAP_I2C_REV_ON_4430_PLUS) dev->errata |= I2C_OMAP_ERRATA_I207; if (dev->rev <= OMAP_I2C_REV_ON_3430_3530) |