smegw01: Remove misuse of CONFIG_ENV_IS_NOWHERE
PATCH 1/1 smegw01: Remove misuse of CONFIG_ENV_IS_NOWHERE
From: Eduard Strehlau <[email protected]>
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 CONFIG_ENV_IS_NOWHERE as default environment.
Based on the fix done by commit b16fd7f75f6d ("imx6q: acc: Remove misuse of env is nowhere driver").
--- board/storopack/smegw01/smegw01.c | 15 --------------- configs/smegw01_defconfig | 1 - 2 files changed, 16 deletions(-)
board/storopack/smegw01/smegw01.c +0 -15
@@ -111,18 +111,3 @@ uint mmc_get_env_part(struct mmc *mmc)return part; } -enum env_location env_get_location (enum env_operation op,int prio) -{ -if (op ==ENVOP_SAVE || op ==ENVOP_ERASE ) -return ENVL_MMC ; - -switch (prio) { -case 0 : -return ENVL_NOWHERE ; - -case 1 : -return ENVL_MMC ; - } - -return ENVL_UNKNOWN ; -}
configs/smegw01_defconfig +0 -1
@@ -48,7 +48,6 @@ CONFIG_CMD_SQUASHFS=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_CONTROL=y CONFIG_ENV_OVERWRITE=y -CONFIG_ENV_IS_NOWHERE=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SYS_MMC_ENV_DEV=1
Signature · 1 line
2.41.0
PATCH 1/1 smegw01: Remove misuse of CONFIG_ENV_IS_NOWHERE
Quoted 9 lines
From: Eduard Strehlau <[email protected]>
When using a list of writeable variables, the initial values come from the built-in default environment since commit5ab81058364b("env:
Complete generic support for writable list").
Remove unnecessary misuse ofCONFIG_ENV_IS_NOWHEREas default environment. Based on the fix done by commitb16fd7f75f6d("imx6q: acc: Remove misuse of env is nowhere driver").Signed-off-by Eduard Strehlau <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================