diff options
Diffstat (limited to 'drivers/bootcount/bootcount_env.c')
-rw-r--r-- | drivers/bootcount/bootcount_env.c | 3 |
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(); } } |