On 14 July 2017 at 05:55, Mario Six <[email protected]> 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 CONFIG_SYS_MAX_FLASH_BANKS_DETECT > is not defined, but DM is enabled. > > Fix this by always defining the cfi_flash_num_flash_banks variable. > > Signed-off-by: Mario Six <[email protected]> > --- > > drivers/mtd/cfi_flash.c | 2 ++ > 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <[email protected]> _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

