mtd: Introduce CONFIG_MTD_DEVICE to select compilation of mtdcore.o
[platform/kernel/u-boot.git] / drivers / mtd / onenand / onenand_uboot.c
index a95b922..9823b5b 100644 (file)
@@ -43,7 +43,7 @@ void onenand_init(void)
        puts("OneNAND: ");
        print_size(onenand_mtd.size, "\n");
 
-#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).