diff mbox series

[U-Boot,v5,21/26] mtd: nor: NOR flashes depend on MTD

Message ID 20191003175028.17015-22-miquel.raynal@bootlin.com
State Rejected
Delegated to: Tom Rini
Headers show
Series MTD defconfigs/Kconfigs/Makefiles heavy cleanup | expand

Commit Message

Miquel Raynal Oct. 3, 2019, 5:50 p.m. UTC
A NOR flash needs the MTD core, ensure this dependency is met by
adding a "depends on" in Kconfig. This is fine since defconfigs have
been fixed.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Dec. 5, 2019, 2:52 a.m. UTC | #1
On Thu, Oct 03, 2019 at 07:50:23PM +0200, Miquel Raynal wrote:

> A NOR flash needs the MTD core, ensure this dependency is met by
> adding a "depends on" in Kconfig. This is fine since defconfigs have
> been fixed.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

This is not correct and has been dropped (same comment as before about
mtdcore.o / mtd_uboot.o inclusion).
diff mbox series

Patch

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 345046c2a6..0832f5b411 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -19,6 +19,7 @@  config DM_MTD
 
 config MTD_NOR_FLASH
 	bool "Enable parallel NOR flash support"
+	depends on MTD
 	help
 	  Enable support for parallel NOR flash.