diff options
author | Patrick Delaunay | 2022-01-04 14:24:00 +0100 |
---|---|---|
committer | Tom Rini | 2022-01-21 14:01:35 -0500 |
commit | 0f9595b9fa68ed1634adddf989fd037909eec433 (patch) | |
tree | 89dae645105ba8e369082ee22165dd0b57898185 /drivers/mtd/spi | |
parent | 144fef87df7cf29b1ce772a73009e7c16908812b (diff) |
configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig
Use moveconfig.py script to convert define CONFIG_SYS_MAX_FLASH_BANKS
and CONFIG_SYS_MAX_FLASH_BANKS_DETECT to Kconfig and move these entries
to defconfigs.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
[trini: Re-switch to IS_ENABLED check in spi-nor-core.c, re-run migration]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mtd/spi')
-rw-r--r-- | drivers/mtd/spi/spi-nor-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 6acaa84d2b0..a70fbda4bbc 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -3707,8 +3707,9 @@ int spi_nor_scan(struct spi_nor *nor) int ret; int cfi_mtd_nb = 0; - if (IS_ENABLED(CONFIG_FLASH_CFI_MTD)) - cfi_mtd_nb = CFI_FLASH_BANKS; +#ifdef CONFIG_FLASH_CFI_MTD + cfi_mtd_nb = CFI_FLASH_BANKS; +#endif /* Reset SPI protocol for all commands. */ nor->reg_proto = SNOR_PROTO_1_1_1; |