diff options
author | Harald Welte <laforge@gnumonks.org> | 2008-07-07 15:40:39 +0800 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 00:28:20 +0200 |
commit | 5bb12dbd7ae03189b6c13d8737b5a1b37c3df698 (patch) | |
tree | 4e761b4b8bcf58c14e331640242cb9ed12ceb91d /include | |
parent | c3bf1ad7baa1b0dd989dedc260b7098b6089ae05 (diff) | |
download | u-boot-imx-5bb12dbd7ae03189b6c13d8737b5a1b37c3df698.zip u-boot-imx-5bb12dbd7ae03189b6c13d8737b5a1b37c3df698.tar.gz u-boot-imx-5bb12dbd7ae03189b6c13d8737b5a1b37c3df698.tar.bz2 |
Remove code duplication for setting the default environment
common/env_common.c (default_env): new function that resets the environment to
the default value
common/env_common.c (env_relocate): use default_env instead of own copy
common/env_nand.c (env_relocate_spec): use default_env instead of own copy
include/environment.h: added default_env prototype
Signed-off-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Harald Welte <laforge@openmoko.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/environment.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h index dcb7c5a..481ea73 100644 --- a/include/environment.h +++ b/include/environment.h @@ -117,4 +117,7 @@ unsigned char env_get_char_memory (int index); /* Function that updates CRC of the enironment */ void env_crc_update (void); +/* [re]set to the default environment */ +void set_default_env(void); + #endif /* _ENVIRONMENT_H_ */ |