diff options
| author | Mario Six <mario.six@gdsys.cc> | 2018-01-26 14:43:56 +0100 |
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2018-01-29 07:48:59 +0100 |
| commit | d9a356972b7504e2e1b0a2b61ddc25a4452502e6 (patch) | |
| tree | 3f4768e492018fde0fef196018412bc7c778e014 /scripts/checkpatch.pl | |
| parent | c0350fbf4c0e9f2d178d89aee49561ce2b4bf890 (diff) | |
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>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
