Add ability to take MAC address from the environment to DM9000 driver
[oweals/u-boot.git] / drivers / nand / diskonchip.c
index 07e2549352c72e61fa8ed760692eeea585938903..e17af70d07fa1075f21c9e5b61fd31eb27b4a80f 100644 (file)
@@ -20,7 +20,9 @@
  */
 
 #include <common.h>
-#ifdef CONFIG_NEW_NAND_CODE
+
+#if !defined(CFG_NAND_LEGACY)
+
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/sched.h>
@@ -1782,4 +1784,4 @@ module_exit(cleanup_nanddoc);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>");
 MODULE_DESCRIPTION("M-Systems DiskOnChip 2000, Millennium and Millennium Plus device driver\n");
-#endif /* CONFIG_NEW_NAND_CODE */
+#endif