X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=env%2Fsata.c;h=8bfcc94306d3a2a8b12ba9f18379d901e0ce7628;hb=9e3c94d117bb3a196ad6e03babb8bc30da4b3ff0;hp=a2ff5c66f7c92b3c293303b9e48328030b18cf71;hpb=64abfc9b6bb3721621d5132e112ae2e91c57d8bb;p=oweals%2Fu-boot.git diff --git a/env/sata.c b/env/sata.c index a2ff5c66f7..8bfcc94306 100644 --- a/env/sata.c +++ b/env/sata.c @@ -8,14 +8,15 @@ #include #include -#include +#include +#include #include #include #include #include #include -#if defined(CONFIG_ENV_SIZE_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND) +#if defined(CONFIG_ENV_OFFSET_REDUND) #error ENV REDUND not supported #endif @@ -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; }