From: Miquel Raynal Date: Thu, 3 Oct 2019 17:50:24 +0000 (+0200) Subject: mtd: spi: SPI_FLASH_MTD depends on MTD X-Git-Tag: baikal/mips/sdk5.9~650^2~4 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=2e3ad0512956104b2f809515b0dfe9da30b404c7;p=uboot.git mtd: spi: SPI_FLASH_MTD depends on MTD It is already the case that all defconfigs with SPI_FLASH_MTD also declare using MTD, but let's make this consistent and enforce it in Kconfig. Most of the time SPI_FLASH_MTD is used in conjunction with UBI, which already depends on MTD. Suggested-by: Vignesh R Signed-off-by: Miquel Raynal --- diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index d77f818505..018e8c597e 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -186,7 +186,7 @@ config SPI_FLASH_DATAFLASH config SPI_FLASH_MTD bool "SPI Flash MTD support" - depends on SPI_FLASH + depends on SPI_FLASH && MTD help Enable the MTD support for spi flash layer, this adapter is for translating mtd_read/mtd_write commands into spi_flash_read/write