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

Simon Glass sjg at chromium.org
Tue Jul 18 14:02:04 UTC 2017


On 14 July 2017 at 05:55, Mario Six <mario.six at gdsys.cc> 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 <mario.six at gdsys.cc>
> ---
>
>  drivers/mtd/cfi_flash.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list