]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mv_common.c: don't compile reset_environment if ENV_IS_NOWHERE
authorMichael Jones <michael.jones@matrix-vision.de>
Thu, 14 Jul 2011 23:09:44 +0000 (23:09 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 28 Jul 2011 14:48:58 +0000 (16:48 +0200)
Doesn't make sense to provide this function to boards which defined
CONFIG_ENV_IS_NOWHERE. Such a board gets a linking error because
common/env_nowhere.c doesn't define saveenv().

Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
board/matrix_vision/common/mv_common.c

index 0afc53541523c4ba5ca387115e2b659bc1a88cec..404c8b41c0b3909cf7ec58fc9a5a3b081f324fb2 100644 (file)
@@ -38,6 +38,7 @@ static char* entries_to_keep[] = {
 #define MV_MAX_ENV_ENTRY_LENGTH        64
 #define MV_KEEP_ENTRIES                ARRAY_SIZE(entries_to_keep)
 
+#ifndef CONFIG_ENV_IS_NOWHERE
 void mv_reset_environment(void)
 {
        int i;
@@ -67,6 +68,7 @@ void mv_reset_environment(void)
 
        saveenv();
 }
+#endif
 
 int mv_load_fpga(void)
 {