[PATCH 3/5] mtd Kconfig: only select NAND_READ_OOB when NAND is enabled

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 2 08:57:12 EST 2012


To get rid of:

(MTD_OOB_DEVICE && MTD_RAW_DEVICE) selects NAND_READ_OOB which has unmet direct dependencies (MTD && NAND)

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mtd/Kconfig |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 69ababc..0a4ca31 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -10,13 +10,13 @@ config MTD_WRITE
 
 config MTD_OOB_DEVICE
 	bool
-	select NAND_READ_OOB
+	select NAND_READ_OOB if NAND
 	default y
 	prompt "Create a device for reading the OOB data"
 
 config MTD_RAW_DEVICE
 	bool
-	select NAND_READ_OOB
+	select NAND_READ_OOB if NAND
 	default n
 	prompt "mtdraw device to read/write both data+oob"
 
-- 
1.7.7.3




More information about the barebox mailing list