projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of rsync://rsync.denx.de/git/u-boot
[platform/kernel/u-boot.git]
/
drivers
/
nand
/
nand.c
diff --git
a/drivers/nand/nand.c
b/drivers/nand/nand.c
index
dd80026
..
e1781fc
100644
(file)
--- a/
drivers/nand/nand.c
+++ b/
drivers/nand/nand.c
@@
-23,11
+23,7
@@
#include <common.h>
#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 <nand.h>
#include <nand.h>