From 01510091de905c46620757b9027b2e55c4b3b313 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:08 -0600 Subject: 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 Reviewed-by: Wolfgang Denk Reviewed-by: Tom Rini --- drivers/bootcount/bootcount_env.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers') 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 +#include void bootcount_store(ulong a) { @@ -13,7 +14,7 @@ void bootcount_store(ulong a) if (upgrade_available) { setenv_ulong("bootcount", a); - saveenv(); + env_save(); } } -- cgit