summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-13 01:40:43 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-13 01:40:43 +0200
commitcc4a0ceeac5462106172d0cc9d9d542233aa3ab2 (patch)
tree120ee426f780a47892f00a98e30605115f010f37 /drivers/mtd/nand/nand.c
parent4fb09b81920e5dfdfc4576883186733f0bd6059c (diff)
downloadtalos-obmc-uboot-cc4a0ceeac5462106172d0cc9d9d542233aa3ab2.tar.gz
talos-obmc-uboot-cc4a0ceeac5462106172d0cc9d9d542233aa3ab2.zip
drivers/mtd/nand: Move conditional compilation to Makefile
rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mtd/nand/nand.c')
-rw-r--r--drivers/mtd/nand/nand.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/nand/nand.c b/drivers/mtd/nand/nand.c
index e44470eb6c..ebd2acd02b 100644
--- a/drivers/mtd/nand/nand.c
+++ b/drivers/mtd/nand/nand.c
@@ -22,9 +22,6 @@
*/
#include <common.h>
-
-#if defined(CONFIG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
-
#include <nand.h>
#ifndef CFG_NAND_BASE_LIST
@@ -79,5 +76,3 @@ void nand_init(void)
board_nand_select_device(nand_info[nand_curr_device].priv, nand_curr_device);
#endif
}
-
-#endif
OpenPOWER on IntegriCloud