diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 1 | ||||
-rw-r--r-- | include/env.h | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 2aabd267b9..55cbe1f97d 100644 --- a/include/common.h +++ b/include/common.h @@ -146,7 +146,6 @@ int do_fat_fsload(cmd_tbl_t *, int, int, char * const []); int do_ext2load(cmd_tbl_t *, int, int, char * const []); /* common/cmd_nvedit.c */ -int env_init (void); void env_relocate (void); int envmatch (uchar *, int); diff --git a/include/env.h b/include/env.h index 19b559abf1..5d205ef02d 100644 --- a/include/env.h +++ b/include/env.h @@ -22,6 +22,16 @@ int env_get_id(void); /** + * env_init() - Set up the pre-relocation environment + * + * This locates the environment or uses the default if nothing is available. + * This must be called before env_get() will work. + * + * @return 0 if OK, -ENODEV if no environment drivers are enabled + */ +int env_init(void); + +/** * env_get_f() - Look up the value of an environment variable (early) * * This function is called from env_get() if the environment has not been |