[U-Boot] [PATCH v5 03/19] env: nowhere: rework with new env interfaces
AKASHI Takahiro
takahiro.akashi at linaro.org
Thu Sep 5 08:21:17 UTC 2019
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 at 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) = {
--
2.21.0
More information about the U-Boot
mailing list