]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx6: aristainetos: Remove misuse of env is nowhere driver
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Tue, 2 May 2023 10:23:02 +0000 (12:23 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 May 2023 20:12:21 +0000 (16:12 -0400)
When using a list of writeable variables, the initial values come from
the built-in default environment since commit 5ab81058364b
("env: Complete generic support for writable list"). Remove unnecessary
misuse of the env is nowhere driver as default environment.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
board/aristainetos/aristainetos.c
configs/aristainetos2c_defconfig
configs/aristainetos2ccslb_defconfig

index 770f3d7d0d55964750c8b410e2128c5324a267ce..4dcf3f396b8ea85e5304799eeaac880bd3187a4b 100644 (file)
@@ -30,7 +30,6 @@
 #include <bmp_logo.h>
 #include <dm/root.h>
 #include <env.h>
-#include <env_internal.h>
 #include <i2c_eeprom.h>
 #include <i2c.h>
 #include <micrel.h>
@@ -529,22 +528,3 @@ int embedded_dtb_select(void)
        return 0;
 }
 #endif
-
-enum env_location env_get_location(enum env_operation op, int prio)
-{
-       if (op == ENVOP_SAVE || op == ENVOP_ERASE)
-               return ENVL_SPI_FLASH;
-
-       switch (prio) {
-       case 0:
-               return ENVL_NOWHERE;
-
-       case 1:
-               return ENVL_SPI_FLASH;
-
-       default:
-               return ENVL_UNKNOWN;
-       }
-
-       return ENVL_UNKNOWN;
-}
index db68b21c03617d0d49632888d914fef649ecfecb..d1eb2abfae3051397b58da39056db4c025f1a746 100644 (file)
@@ -59,7 +59,6 @@ CONFIG_OF_CONTROL=y
 CONFIG_DTB_RESELECT=y
 CONFIG_MULTI_DTB_FIT=y
 CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_NOWHERE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_SPI_EARLY=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
index d369505e8bf0952bc6a09ec649e6e205397b5cdd..638976df95c2ef226af356bf438b5f7067f5fd3a 100644 (file)
@@ -59,7 +59,6 @@ CONFIG_OF_CONTROL=y
 CONFIG_DTB_RESELECT=y
 CONFIG_MULTI_DTB_FIT=y
 CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_NOWHERE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_SPI_EARLY=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y