env_eeprom invalidates gd->env_addr by setting it to an offset value
authorGuy Thouret <guy.thouret@wems.co.uk>
Fri, 11 Mar 2016 13:31:39 +0000 (13:31 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 11 Apr 2016 16:44:37 +0000 (12:44 -0400)
commitc00c29d8f70533b8b59e48be207027e58c735d2b
treec7727a7f8ee2e6d7bb863cadcda807747e632f64
parentd3bafe32ca47bc3872837c1fe7874f9913de103f
env_eeprom invalidates gd->env_addr by setting it to an offset value

Patch to fix boot hang when using env on i2c eeprom caused by invalid gd->env_addr

Signed-off-by: Guy Thouret <guy.thouret@wems.co.uk>
Cc: Heiko Schocher <hs@denx.de>
common/env_eeprom.c