summaryrefslogtreecommitdiff
path: root/drivers/nand/nand_ecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nand/nand_ecc.c')
-rw-r--r--drivers/nand/nand_ecc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/nand/nand_ecc.c b/drivers/nand/nand_ecc.c
index e0d0e8b..f33be96 100644
--- a/drivers/nand/nand_ecc.c
+++ b/drivers/nand/nand_ecc.c
@@ -37,11 +37,7 @@
#include <common.h>
-#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)
+#if (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
#include<linux/mtd/mtd.h>
/*