]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/nand.c
mtd: Introduce CONFIG_MTD_DEVICE to select compilation of mtdcore.o
[u-boot] / drivers / mtd / nand / nand.c
index d3691151f0513eb3c613d43dc29bbcf1ad4a7ab4..9065fa91c6f5c6de4adfde822c293c0cba7b9941 100644 (file)
@@ -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).