summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9261ek/nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/atmel/at91sam9261ek/nand.c')
-rw-r--r--board/atmel/at91sam9261ek/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/atmel/at91sam9261ek/nand.c b/board/atmel/at91sam9261ek/nand.c
index fccb9d78de..06395ee215 100644
--- a/board/atmel/at91sam9261ek/nand.c
+++ b/board/atmel/at91sam9261ek/nand.c
@@ -67,7 +67,7 @@ static int at91sam9261ek_nand_ready(struct mtd_info *mtd)
int board_nand_init(struct nand_chip *nand)
{
nand->ecc.mode = NAND_ECC_SOFT;
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
nand->options = NAND_BUSWIDTH_16;
#endif
nand->cmd_ctrl = at91sam9261ek_nand_hwcontrol;