From mboxrd@z Thu Jan 1 00:00:00 1970 From: AKASHI Takahiro Date: Thu, 5 Sep 2019 17:21:17 +0900 Subject: [U-Boot] [PATCH v5 03/19] env: nowhere: rework with new env interfaces In-Reply-To: <20190905082133.18996-1-takahiro.akashi@linaro.org> References: <20190905082133.18996-1-takahiro.akashi@linaro.org> Message-ID: <20190905082133.18996-4-takahiro.akashi@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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) = { -- 2.21.0