1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-28 03:12:18 +01:00
Files
u-boot-megous/drivers/mtd
Mario Six d9a356972b cfi_flash: Always define cfi_flash_num_flash_banks
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 <mario.six@gdsys.cc>
Signed-off-by: Stefan Roese <sr@denx.de>
2018-01-29 07:48:59 +01:00
..
2014-11-19 08:48:41 +01:00
2017-10-16 09:42:51 -04:00
2015-11-12 08:26:58 +08:00
2008-09-09 11:48:53 +02:00