aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-08-16 17:30:18 +0200
committerJagan Teki <jagan@amarulasolutions.com>2018-09-20 20:10:49 +0530
commit4048a5c519a86eab2805f4f07fe9f5c6c8a1fe91 (patch)
treec32ee4fed3869a6d9087af4ce4caf57d2e4aebee /drivers/mtd
parent0fa1fc43c87d01a2eb30553f9aea4b52ed43c1f5 (diff)
downloadu-boot-4048a5c519a86eab2805f4f07fe9f5c6c8a1fe91.zip
u-boot-4048a5c519a86eab2805f4f07fe9f5c6c8a1fe91.tar.gz
u-boot-4048a5c519a86eab2805f4f07fe9f5c6c8a1fe91.tar.bz2
mtd: declare MTD_PARTITIONS symbol in Kconfig
UBI selects MTD_PARTITIONS which is the symbol to compile drivers/mtd/mtdpart.c. Unfortunately, the symbol was not defined in Kconfig and this worked only with board files defining it. Fix this by adding a boolean in Kconfig so boards defined by defconfig files only will work as expected. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 9341d51..d98457e 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -1,5 +1,8 @@
menu "MTD Support"
+config MTD_PARTITIONS
+ bool
+
config MTD
bool "Enable Driver Model for MTD drivers"
depends on DM