I2C: OMAP: prevent the overwrite of the errata flags
authorTasslehoff Kjappfot <tasskjapp@gmail.com>
Tue, 29 May 2012 10:56:20 +0000 (16:26 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sun, 8 Jul 2012 10:49:14 +0000 (12:49 +0200)
commit9aa8ec676b6ef151ab11868d16a928d92410d25e
treef045e2b122e4d147b5ef5d7c5e7ad0adee18a2ed
parent3b0fb97c8dc476935670706873c27a474191ccce
I2C: OMAP: prevent the overwrite of the errata flags

i2c_probe set the dev->errata flag, but omap_i2c_init cleared the flag again.
Prevent the overwrite of the errata flags.Move the errata handling to a unified
place in probe to prevent such errors.

Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tasslehoff Kjappfot <tasskjapp@gmail.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-omap.c