subsys: storage: flash_map: enable only if any flash driver is enable
It was possible to have enable flash module while no flash driver implementation was enabled. This cause coverity issues and unnecessary initialization call. This pat introduce FLASH_HAS_DRIVER_ENABLED Kconfig keyword which is selected once any flash driver is enabled. flash_map switch its dependency to this keyword. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
parent
51527e07ef
commit
80a99fa450
4 changed files with 14 additions and 1 deletions
|
@ -13,7 +13,7 @@ menuconfig FLASH_MAP
|
|||
bool
|
||||
prompt "Flash map abstraction module"
|
||||
default n
|
||||
depends on FLASH
|
||||
depends on FLASH_HAS_DRIVER_ENABLED
|
||||
help
|
||||
Enable support of flash map abstraction.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue