diff options
author | Tom Rini | 2022-01-21 14:01:41 -0500 |
---|---|---|
committer | Tom Rini | 2022-01-21 14:01:41 -0500 |
commit | e6786b0354372c8a68d01e4d633a19cdce373b70 (patch) | |
tree | 027e1693c9765fe67f3879d2e65d38ac695dde98 /common/flash.c | |
parent | 2d7a463e82daeba4f6a7fb59bac0fe94d6f6d3a2 (diff) | |
parent | 3425decf5299bb7d3ce12d7f8e43cd2d49b9cad6 (diff) |
Merge branch '2022-01-21-Kconfig-migrations'
- Migrate CONFIG_KEEP_SERVERADDR, CONFIG_UDP_CHECKSUM, CONFIG_TIMESTAMP,
CONFIG_BOOTP_SERVERIP, CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR,
CONFIG_SYS_MAX_FLASH_BANKS_DETECT, CONFIG_SYS_MAX_FLASH_BANKS and
CONFIG_AT91_EFLASH to Kconfig
Diffstat (limited to 'common/flash.c')
-rw-r--r-- | common/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flash.c b/common/flash.c index bb82385c1f7..f939c2f9e95 100644 --- a/common/flash.c +++ b/common/flash.c @@ -91,7 +91,7 @@ addr2info(ulong addr) flash_info_t *info; int i; - for (i=0, info = &flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) { + for (i = 0, info = &flash_info[0]; i < CFI_FLASH_BANKS; ++i, ++info) { if (info->flash_id != FLASH_UNKNOWN && addr >= info->start[0] && /* WARNING - The '- 1' is needed if the flash |