
Make this function a place holder. Managing default values, in particular for U-Boot environment, should go into context-specific initialization.
Signed-off-by: AKASHI Takahiro takahiro.akashi@linaro.org --- env/nowhere.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/env/nowhere.c b/env/nowhere.c index f5b0a17652c5..1a4d40f4a2de 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -19,12 +19,11 @@ DECLARE_GLOBAL_DATA_PTR; * Because we only ever have the default environment available we must mark * it as invalid. */ -static int env_nowhere_init(void) +static int env_nowhere_init(struct env_context *ctx) { - gd->env_addr = (ulong)&default_environment[0]; - gd->env_valid = ENV_INVALID; + /* Just a placeholder */
- return 0; + return -ENOENT; }
U_BOOT_ENV_LOCATION(nowhere) = {