diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-09-22 19:29:07 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-28 15:35:19 +0300 |
commit | b218f865e8a7defdcb2c6d87e8d93f9ea7e4e9f5 (patch) | |
tree | 7a152cb6009e5103551fd4be6eeb5122a0122982 /drivers | |
parent | 0b9bcf665cd98fe9db0956c894006b250a7d465f (diff) | |
download | u-boot-b218f865e8a7defdcb2c6d87e8d93f9ea7e4e9f5.tar.xz |
mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported
When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated,
CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks,
but this variable is defined in drivers/mtd/cfi_flash.c, which is
compiled only when CONFIG_FLASH_CFI_DRIVER is activated, in U-Boot
or in SPL when CONFIG_SPL_MTD_SUPPORT is activated.
This patch deactivates this feature CONFIG_SYS_MAX_FLASH_BANKS_DETECT
when flash cfi driver is not activated to avoid compilation issue in
the next patch, when CONFIG_SYS_MAX_FLASH_BANKS is used in spi_nor_scan().
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions