aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2019-10-03 19:50:24 +0200
committerTom Rini <trini@konsulko.com>2019-12-04 17:10:51 -0500
commit85f7e9d547e0868ac5305c3698b38388a4b8e2a3 (patch)
tree3539d6f055c82274cea3def4a7a8e138ebe477a7 /drivers
parentf3a02d29e84b57fe7f11e7f3de5cd5f2479484b1 (diff)
downloadu-boot-85f7e9d547e0868ac5305c3698b38388a4b8e2a3.zip
u-boot-85f7e9d547e0868ac5305c3698b38388a4b8e2a3.tar.gz
u-boot-85f7e9d547e0868ac5305c3698b38388a4b8e2a3.tar.bz2
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 <vigneshr@ti.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/spi/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index d77f818..018e8c5 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