]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/bootcount/bootcount_env.c
env: Rename common functions related to setenv()
[people/ms/u-boot.git] / drivers / bootcount / bootcount_env.c
index 2d6e8db126eabec07438111c65d0d0cac5531d68..ec5f9426760242401c9d23f11556d49aeb69fb28 100644 (file)
@@ -6,14 +6,15 @@
  */
 
 #include <common.h>
+#include <environment.h>
 
 void bootcount_store(ulong a)
 {
        int upgrade_available = getenv_ulong("upgrade_available", 10, 0);
 
        if (upgrade_available) {
-               setenv_ulong("bootcount", a);
-               saveenv();
+               env_set_ulong("bootcount", a);
+               env_save();
        }
 }