u-boot-brain/env
Jagan Teki c8cbf1707c env: sf: Free the old env_flash
env_flash is a global flash pointer, and the probe would
happen only if env_flash is NULL, but there is no checking
and free the pointer if is not NULL.

So, this patch frees the old env_flash, and get the probed
flash in to env_flash pointer and finally check if is not NULL.

Cc: Simon Glass <sjg@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
2020-06-01 17:55:24 +05:30
..
Kconfig env: Convert ENV_ACCESS_IGNORE_FORCE to Kconfig 2020-05-25 11:54:53 -04:00
Makefile env: remove callback.o for an SPL build 2020-04-24 10:09:59 -04:00
attr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
callback.c make env_entry::callback conditional on !CONFIG_SPL_BUILD 2020-04-24 10:09:59 -04:00
common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
eeprom.c common: Move old EEPROM functions into a new header 2019-12-02 18:25:25 -05:00
embedded.c env: Finish migration of common ENV options 2019-11-20 18:32:09 -05:00
env.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ext4.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
fat.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
flags.c make env_entry::callback conditional on !CONFIG_SPL_BUILD 2020-04-24 10:09:59 -04:00
flash.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc.c part: Drop disk_partition_t typedef 2020-05-18 17:33:33 -04:00
nand.c crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
nowhere.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
nvram.c env: make file-scope env_ptr variables static 2020-04-17 12:29:43 -04:00
onenand.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
remote.c env: make file-scope env_ptr variables static 2020-04-17 12:29:43 -04:00
sata.c env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check 2019-11-20 18:31:24 -05:00
sf.c env: sf: Free the old env_flash 2020-06-01 17:55:24 +05:30
ubi.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00