summaryrefslogtreecommitdiffstats
path: root/drivers/nand/nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nand/nand.c')
-rw-r--r--drivers/nand/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nand/nand.c b/drivers/nand/nand.c
index 9fef71d629..104a4167fb 100644
--- a/drivers/nand/nand.c
+++ b/drivers/nand/nand.c
@@ -23,7 +23,7 @@
#include <common.h>
-#if (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
+#if ((CONFIG_COMMANDS & CFG_CMD_NAND) || defined(CONFIG_CMD_NAND)) && !defined(CFG_NAND_LEGACY)
#include <nand.h>
OpenPOWER on IntegriCloud