Эх сурвалжийг харах

[MTD] Fix dependencies with CONFIG_MTD=m

CMDLINEPARTS shouldn't be selectable, and neither should SSFDC, which
can be a tristate anyway.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 18 жил өмнө
parent
commit
892e4fba1c

+ 2 - 2
drivers/mtd/Kconfig

@@ -101,7 +101,7 @@ config MTD_REDBOOT_PARTS_READONLY
 
 
 config MTD_CMDLINE_PARTS
 config MTD_CMDLINE_PARTS
 	bool "Command line partition table parsing"
 	bool "Command line partition table parsing"
-	depends on MTD_PARTITIONS = "y"
+	depends on MTD_PARTITIONS = "y" && MTD = "y"
 	---help---
 	---help---
 	  Allow generic configuration of the MTD partition tables via the kernel
 	  Allow generic configuration of the MTD partition tables via the kernel
 	  command line. Multiple flash resources are supported for hardware where
 	  command line. Multiple flash resources are supported for hardware where
@@ -264,7 +264,7 @@ config RFD_FTL
 		http://www.gensw.com/pages/prod/bios/rfd.htm
 		http://www.gensw.com/pages/prod/bios/rfd.htm
 
 
 config SSFDC
 config SSFDC
-	bool "NAND SSFDC (SmartMedia) read only translation layer"
+	tristate "NAND SSFDC (SmartMedia) read only translation layer"
 	depends on MTD
 	depends on MTD
 	default n
 	default n
 	help
 	help