summaryrefslogtreecommitdiff
path: root/env/sata.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/sata.c')
-rw-r--r--env/sata.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/env/sata.c b/env/sata.c
index a2ff5c66f7..9369710081 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -8,7 +8,8 @@
#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>
@@ -106,7 +107,7 @@ 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;
}