]> Git Repo - J-u-boot.git/blobdiff - env/sata.c
env: mmc: Add missing eMMC bootpart restoration to env erase
[J-u-boot.git] / env / sata.c
index a2ff5c66f7c92b3c293303b9e48328030b18cf71..9442cfcaf3cab666a55cb64c1cfc460cf0feadfc 100644 (file)
@@ -8,14 +8,15 @@
 #include <common.h>
 
 #include <command.h>
-#include <environment.h>
+#include <env.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <errno.h>
 #include <memalign.h>
 #include <sata.h>
 #include <search.h>
 
-#if defined(CONFIG_ENV_SIZE_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
+#if defined(CONFIG_ENV_OFFSET_REDUND)
 #error ENV REDUND not supported
 #endif
 
@@ -106,11 +107,11 @@ static void env_sata_load(void)
        }
 
        if (read_env(sata, CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET, buf)) {
-               set_default_env(NULL, 0);
+               env_set_default(NULL, 0);
                return -EIO;
        }
 
-       return env_import(buf, 1);
+       return env_import(buf, 1, H_EXTERNAL);
 }
 
 U_BOOT_ENV_LOCATION(sata) = {
This page took 0.025881 seconds and 4 git commands to generate.