summaryrefslogtreecommitdiff
path: root/drivers/nand/nand_bbt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nand/nand_bbt.c')
-rw-r--r--drivers/nand/nand_bbt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/nand/nand_bbt.c b/drivers/nand/nand_bbt.c
index f481308..ac16872 100644
--- a/drivers/nand/nand_bbt.c
+++ b/drivers/nand/nand_bbt.c
@@ -54,7 +54,10 @@
#include <common.h>
-#ifdef CONFIG_NEW_NAND_CODE
+#ifdef CFG_NAND_LEGACY
+#error CFG_NAND_LEGACY defined in a file not using the legacy NAND support!
+#endif
+
#if (CONFIG_COMMANDS & CFG_CMD_NAND)
#include <malloc.h>
@@ -1051,5 +1054,3 @@ int nand_isbad_bbt (struct mtd_info *mtd, loff_t offs, int allowbbt)
}
#endif
-#endif /* CONFIG_NEW_NAND_CODE */
-