From: Jagan Teki Date: Wed, 16 Oct 2019 12:37:24 +0000 (+0530) Subject: mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=77df1a9b665461e03e6da94cd9fb0399c85e715a;p=u-boot.git mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH DM_SPI_FLASH should require spi flash interface code for dm version, so imply SPI_FLASH core by default if any board enabled DM_SPI_FLASH. This overcome the explicit enablement of CONFIG_SPI_FLASH on respective boards when DM_SPI_FLASH being used. Acked-by: Vignesh Raghavendra Signed-off-by: Jagan Teki --- diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index a0cfc623c6..681dc9cccc 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -3,6 +3,7 @@ menu "SPI Flash Support" config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" depends on DM && DM_SPI + imply SPI_FLASH help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then