]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/onenand/onenand_uboot.c
Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze
[u-boot] / drivers / mtd / onenand / onenand_uboot.c
index a95b922a8f4d8d99e43c6a38f08ee587a635a548..ae60c3bb71dffd2203fb8fbca5d821aa12c8a60d 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 #include <common.h>
-#include <linux/mtd/compat.h>
+#include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
 
@@ -40,10 +40,12 @@ void onenand_init(void)
 
        onenand_scan(&onenand_mtd, 1);
 
+       if (onenand_chip.device_id & DEVICE_IS_FLEXONENAND)
+               puts("Flex-");
        puts("OneNAND: ");
-       print_size(onenand_mtd.size, "\n");
+       print_size(onenand_chip.chipsize, "\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).