apalis-tk1: avoid save environment unasked
authorDenys Drozdov <denys.drozdov@toradex.com>
Fri, 8 Apr 2022 08:07:07 +0000 (10:07 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
U-Boot should never save the environment unasked.
This also avoids storing broken fdt_module to flash.

Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/apalis-tk1/apalis-tk1.c

index 2769b54601099e5e6e4eb7bf8a256a10e3aa1896..ccf665b211863a97fe4f0bb832e885f844cb69e9 100644 (file)
@@ -71,9 +71,6 @@ int arch_misc_init(void)
                        env_set("fdt_module", FDT_MODULE_V1_0);
                        printf("patching fdt_module to " FDT_MODULE_V1_0
                               " for older V1.0 and V1.1 HW\n");
-#ifndef CONFIG_ENV_IS_NOWHERE
-                       env_save();
-#endif
                }
 
                /* activate USB power enable GPIOs */