summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand_legacy
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand_legacy')
-rw-r--r--drivers/mtd/nand_legacy/nand_legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand_legacy/nand_legacy.c b/drivers/mtd/nand_legacy/nand_legacy.c
index 407e901..441780a 100644
--- a/drivers/mtd/nand_legacy/nand_legacy.c
+++ b/drivers/mtd/nand_legacy/nand_legacy.c
@@ -457,7 +457,7 @@ static void NanD_ScanChips(struct nand_chip *nand)
{
int floor, chip;
int numchips[NAND_MAX_FLOORS];
- int maxchips = NAND_MAX_CHIPS;
+ int maxchips = CONFIG_SYS_NAND_MAX_CHIPS;
int ret = 1;
nand->numchips = 0;