[PATCH 02/10] fault injection: fix Kconfig menu

From: Vegard Nossum
Date: Wed Aug 03 2016 - 11:12:45 EST


We need an explicit dependency on FAULT_INJECTION in order to keep
FAIL_MMC_REQUEST (and subsequent entries) inside the FAULT_INJECTION
menu.

Fixes: 28ff4fda9e5b ("mmc: kconfig: replace FAULT_INJECTION with FAULT_INJECTION_DEBUG_FS")
Cc: Adrien Schildknecht <adrien+dev@xxxxxxxxxxx>
Cc: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxxx>
---
lib/Kconfig.debug | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 2307d7c..6baa522 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1641,7 +1641,8 @@ config FAIL_IO_TIMEOUT

config FAIL_MMC_REQUEST
bool "Fault-injection capability for MMC IO"
- depends on FAULT_INJECTION_DEBUG_FS && MMC
+ depends on FAULT_INJECTION && MMC
+ depends on FAULT_INJECTION_DEBUG_FS
help
Provide fault-injection capability for MMC IO.
This will make the mmc core return data errors. This is
--
1.9.1