Re: [U-Boot] [PATCH 14/51] cfi_flash: Always define cfi_flash_num_flash_banks

2017-07-18 Thread Simon Glass
On 14 July 2017 at 05:55, Mario Six wrote: > The variable cfi_flash_num_flash_banks is defined iff > CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, but it is used > unconditionally in the function cfi_flash_init_dm. This leads to a > undefined variable compile error when

[U-Boot] [PATCH 14/51] cfi_flash: Always define cfi_flash_num_flash_banks

2017-07-14 Thread Mario Six
The variable cfi_flash_num_flash_banks is defined iff CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, but it is used unconditionally in the function cfi_flash_init_dm. This leads to a undefined variable compile error when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is not defined, but DM is enabled. Fix this