summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-05-12 14:31:18 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:45:47 +0200
commitd558107c18708050f05b6639b2192efb67c905dc (patch)
tree964690b86061721363efc675d593262191c6828a /drivers/mtd/nand
parent942556a92a8c1eb1bd76584a5143f6f57dcb25ad (diff)
downloadtalos-obmc-uboot-d558107c18708050f05b6639b2192efb67c905dc.tar.gz
talos-obmc-uboot-d558107c18708050f05b6639b2192efb67c905dc.zip
mtd: Introduce CONFIG_MTD_DEVICE to select compilation of mtdcore.o
This new define enables mtdcore.c compilation and with this we can select the MTD device infrastructure needed for the reworked mtdparts command. We now have the 2 MTD infrastructure defines, CONFIG_MTD_DEVICE and CONFIG_MTD_PARTITIONS. CONFIG_MTD_DEVICE is needed (as explained above) for the "mtdparts" command and CONFIG_MTD_PARTITIONS is needed for UBI. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nand/nand.c
index d3691151f0..9065fa91c6 100644
--- a/drivers/mtd/nand/nand.c
+++ b/drivers/mtd/nand/nand.c
@@ -57,7 +57,7 @@ static void nand_init_chip(struct mtd_info *mtd, struct nand_chip *nand,
else
mtd->name += gd->reloc_off;
-#ifdef CONFIG_MTD_PARTITIONS
+#ifdef CONFIG_MTD_DEVICE
/*
* Add MTD device so that we can reference it later
* via the mtdcore infrastructure (e.g. ubi).
OpenPOWER on IntegriCloud