drivers/mtd/nand: Move conditional compilation to Makefile
[oweals/u-boot.git] / cpu / ppc4xx / ndfc.c
index 4f083d95bc10e63ea67e545866f932105f35fb19..72acfd01b5e6f685fc02fdfbfd5ebcad1a241605 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_CMD_NAND) && !defined(CFG_NAND_LEGACY) && \
+#if defined(CONFIG_CMD_NAND) && !defined(CONFIG_NAND_LEGACY) && \
        (defined(CONFIG_440EP) || defined(CONFIG_440GR) ||           \
         defined(CONFIG_440EPX) || defined(CONFIG_440GRX) ||         \
         defined(CONFIG_405EZ) || defined(CONFIG_405EX) ||           \