]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: Add missing MTD dependency for cfi_mtd
authorMichal Simek <michal.simek@amd.com>
Tue, 4 Jul 2023 12:04:04 +0000 (14:04 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 21 Jul 2023 07:00:38 +0000 (09:00 +0200)
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>
Link: https://lore.kernel.org/r/76ae01ce2b2c988758b69e0f0cdcc21bf301c01e.1688472227.git.michal.simek@amd.com
drivers/mtd/Kconfig

index 5fa88dae5f33f9c67d63c9302f2eff9fada9f5d7..c56840c8497562319a794a842c00629a8c3f7f1c 100644 (file)
@@ -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