* Add hook to NAND erase and implement nand_wait function.
[platform/kernel/u-boot.git] / common / cmd_nand.c
index 5648ab2..0c05255 100644 (file)
@@ -21,7 +21,7 @@
 # define SHOW_BOOT_PROGRESS(arg)
 #endif
 
-#if (CONFIG_COMMANDS & CFG_CMD_NAND)
+#if (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined CONFIG_NEW_NAND_CODE
 
 #include <linux/mtd/nand.h>
 #include <linux/mtd/nand_ids.h>