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:
Andrzej Puzdrowski 2018-03-07 14:31:56 +01:00 committed by Carles Cufí
commit 80a99fa450
4 changed files with 14 additions and 1 deletions

View file

@ -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.