subsys: disk: move conditional location

We had the if in the wrong place causing some Kconfigs to be set even if
DISK_ACCESS was not configured in.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-10-19 09:11:13 -04:00 committed by Maureen Helm
commit 412a0b0682

View file

@ -11,6 +11,8 @@ config DISK_ACCESS
help help
Enable disk access over a supported media backend like FLASH or RAM Enable disk access over a supported media backend like FLASH or RAM
if DISK_ACCESS
config DISK_ACCESS_MAX_VOLUMES config DISK_ACCESS_MAX_VOLUMES
int "Maximum Disk Interfaces" int "Maximum Disk Interfaces"
default 8 default 8
@ -21,8 +23,6 @@ module = DISK
module-str = disk module-str = disk
source "subsys/logging/Kconfig.template.log_config" source "subsys/logging/Kconfig.template.log_config"
if DISK_ACCESS
config DISK_ACCESS_RAM config DISK_ACCESS_RAM
bool "RAM Disk" bool "RAM Disk"
help help