summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtd_uboot.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2019-10-03 20:50:04 +0300
committerTom Rini <trini@konsulko.com>2019-12-04 07:04:10 +0300
commit1de770d5442769778c96bdac271590b44b2c7b78 (patch)
treeb35b1b0fae01ea4af15f852dd16d8b01c76ea5ee /drivers/mtd/mtd_uboot.c
parent88718be3001055fa2801a44ab10570279b3f2cb7 (diff)
downloadu-boot-1de770d5442769778c96bdac271590b44b2c7b78.tar.xz
mtd: rename CONFIG_MTD -> CONFIG_DM_MTD
CONFIG_MTD must be reserved for the MTD core. Like any other subsystem, prefix the symbol by DM when it comes to DM support. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> [trini: Add Kconfig files] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mtd/mtd_uboot.c')
-rw-r--r--drivers/mtd/mtd_uboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c
index 5574227598..7c6c9ac0bc 100644
--- a/drivers/mtd/mtd_uboot.c
+++ b/drivers/mtd/mtd_uboot.c
@@ -99,7 +99,7 @@ int mtd_search_alternate_name(const char *mtdname, char *altname,
return -EINVAL;
}
-#if IS_ENABLED(CONFIG_MTD)
+#if IS_ENABLED(CONFIG_DM_MTD)
static void mtd_probe_uclass_mtd_devs(void)
{
struct udevice *dev;