u-boot-brain/env
Tom Rini eeba55cb4a env: Correct case of no sub-init function
With the change to the environment code to remove the common init stage
of pointing to the default environment and setting it as valid, combined
with the change to switch gd->env_valid from 0/1/2 to an enum we now
must set env_valid to one of the enum values rather than an int.  And in
this case, not only was setting it to an int wrong, it was now the wrong
value.  Finally, in the case of ENV_IS_NOWHERE we must still say that
our envionrment is invalid after init for things to continue to
function.

Fixes: 7938822a6b ("env: Drop common init() functions")
Tested-by: Marek Vasut <marek.vasut@gmail.com>
Reported-by: Marek Vasut <marek.vasut@gmail.com>
Reported-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
Changes in v3:
- Actually include changes for env/nowhere.c
2017-08-20 19:27:28 -04:00
..
attr.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
callback.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
common.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
dataflash.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
eeprom.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
embedded.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
env.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
ext4.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
fat.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
flags.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
flash.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
Kconfig env: Sort selection of default choices 2017-08-20 09:54:33 -04:00
Makefile env: Add a new implementation of environment access 2017-08-15 20:50:26 -04:00
mmc.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
nand.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
nowhere.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
nvram.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
onenand.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
remote.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sata.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sf.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
ubi.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00