[PATCH] mtd: Add missing MTD dependency for cfi_mtd

Michal Simek michal.simek at amd.com
Mon Jul 17 11:22:21 CEST 2023



On 7/4/23 14:04, Michal Simek wrote:
> 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 at 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

Applied.
M


More information about the U-Boot mailing list