Merge with git://www.denx.de/git/u-boot.git
[platform/kernel/u-boot.git] / board / netta2 / netta2.c
index c9b4051..b216c5a 100644 (file)
@@ -595,9 +595,9 @@ int board_early_init_f(void)
        return 0;
 }
 
-#if (CONFIG_COMMANDS & CFG_CMD_NAND)
+#if defined(CONFIG_CMD_NAND)
 
-#include <linux/mtd/nand.h>
+#include <linux/mtd/nand_legacy.h>
 
 extern ulong nand_probe(ulong physadr);
 extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];