summaryrefslogtreecommitdiff
path: root/drivers
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 /drivers
parent310fb14b2631b2175efe9b0e56d0f1630ad02d91 (diff)
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 'drivers')
-rw-r--r--drivers/bootcount/bootcount_env.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bootcount/bootcount_env.c b/drivers/bootcount/bootcount_env.c
index 2d6e8db126..7f22dd0748 100644
--- a/drivers/bootcount/bootcount_env.c
+++ b/drivers/bootcount/bootcount_env.c
@@ -6,6 +6,7 @@
*/
#include <common.h>
+#include <environment.h>
void bootcount_store(ulong a)
{
@@ -13,7 +14,7 @@ void bootcount_store(ulong a)
if (upgrade_available) {
setenv_ulong("bootcount", a);
- saveenv();
+ env_save();
}
}