summaryrefslogtreecommitdiff
path: root/board/siemens
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-03 12:22:08 -0600
committerTom Rini <trini@konsulko.com>2017-08-15 20:50:30 -0400
commit01510091de905c46620757b9027b2e55c4b3b313 (patch)
tree6c4a3bfa6f7f35c37bd0bfe6f286218461e09577 /board/siemens
parent310fb14b2631b2175efe9b0e56d0f1630ad02d91 (diff)
downloadu-boot-01510091de905c46620757b9027b2e55c4b3b313.tar.gz
env: Drop saveenv() in favour of env_save()
Use the env_save() function directly now that there is only one implementation of saveenv(). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Denk <wd@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/siemens')
-rw-r--r--board/siemens/taurus/taurus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c
index 4aa8d64869..3b742ebc22 100644
--- a/board/siemens/taurus/taurus.c
+++ b/board/siemens/taurus/taurus.c
@@ -15,6 +15,7 @@
#include <command.h>
#include <common.h>
#include <dm.h>
+#include <environment.h>
#include <asm/io.h>
#include <asm/arch/at91sam9260_matrix.h>
#include <asm/arch/at91sam9_smc.h>
@@ -405,7 +406,7 @@ static int upgrade_failure_fallback(void)
setenv("bootargs", '\0');
setenv("upgrade_available", '\0');
setenv("boot_retries", '\0');
- saveenv();
+ env_save();
return 0;
}
@@ -424,7 +425,7 @@ static int do_upgrade_available(cmd_tbl_t *cmdtp, int flag, int argc,
boot_retry++;
sprintf(boot_buf, "%lx", boot_retry);
setenv("boot_retries", boot_buf);
- saveenv();
+ env_save();
/*
* Here the boot_retries count is checked, and if the