summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9rlek/nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/atmel/at91sam9rlek/nand.c')
-rw-r--r--board/atmel/at91sam9rlek/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/atmel/at91sam9rlek/nand.c b/board/atmel/at91sam9rlek/nand.c
index eb342b8..625f6ec 100644
--- a/board/atmel/at91sam9rlek/nand.c
+++ b/board/atmel/at91sam9rlek/nand.c
@@ -67,7 +67,7 @@ static int at91sam9rlek_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 = at91sam9rlek_nand_hwcontrol;