public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] mtd: Add missing MTD dependency for cfi_mtd
@ 2023-07-04 12:04 Michal Simek
  2023-07-17  9:22 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2023-07-04 12:04 UTC (permalink / raw)
  To: u-boot, git; +Cc: Abdellatif El Khlifi, Jaehoon Chung, Simon Glass

cfi_mtd requires add_mtd_device() which is available only when MTD is
enabled that's why record this dependency.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 drivers/mtd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 5fa88dae5f33..c56840c84975 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -128,7 +128,7 @@ config FLASH_SPANSION_S29WS_N
 
 config FLASH_CFI_MTD
 	bool "Enable CFI MTD driver"
-	depends on FLASH_CFI_DRIVER
+	depends on FLASH_CFI_DRIVER && MTD
 	help
 	  This option enables the building of the cfi_mtd driver
 	  in the drivers directory. The driver exports CFI flash
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-17  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-04 12:04 [PATCH] mtd: Add missing MTD dependency for cfi_mtd Michal Simek
2023-07-17  9:22 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox