env_eeprom.c: Correct using saved environment
authorLudger Dreier <ludger.dreier@keymile.com>
Mon, 12 Oct 2015 11:34:24 +0000 (13:34 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 12 Oct 2015 14:33:31 +0000 (10:33 -0400)
commite3cc5bc582c06fcc0a586347736160694d8ec582
tree6b83b74cd703023849871f6c61d4e9e68dc4d26a
parent040ef8f5652a5dd85485e88945ed7b0f0fa3cce5
env_eeprom.c: Correct using saved environment

The changes in ed6a5d4 unintentionally broke support for reading the
environment saved to eeprom back.  To correct this the crc-check and
decision on which environment to use is now moved to env_relocate_spec.
This is done for both the "redundant env" and the "single env" case.

Signed-off-by: Ludger Dreier <ludger.dreier@keymile.com>
common/env_eeprom.c