]> git.sur5r.net Git - u-boot/blobdiff - drivers/bootcount/bootcount_env.c
env: Drop saveenv() in favour of env_save()
[u-boot] / drivers / bootcount / bootcount_env.c
index 2d6e8db126eabec07438111c65d0d0cac5531d68..7f22dd0748caeca5216b3c26f42c6e6db7dfd810 100644 (file)
@@ -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();
        }
 }