I2C: Fix mxc_i2c.c problem on imx31_phycore
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 26 Oct 2011 00:05:44 +0000 (00:05 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:19 +0000 (22:56 +0100)
commitbf0783df0d64772706db4bda0eec7197ea3bf21b
tree342c7baa6f16efd7f2219b9824d3810b1d4d4a6a
parentd28d6a96192d69acd99ebe7031908f18f8765262
I2C: Fix mxc_i2c.c problem on imx31_phycore

The problem was caused by a global variable being used early in the boot
process.

The symptoms were on imx31_phycore board, reading the environment from I2C
EEPROM didn't work correctly and causes default environment to be loaded.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Heiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Stefano Babic <sbabic@denx.de>
drivers/i2c/mxc_i2c.c