summaryrefslogtreecommitdiff
path: root/board/esd/cpci405/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/esd/cpci405/flash.c')
-rw-r--r--board/esd/cpci405/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/esd/cpci405/flash.c b/board/esd/cpci405/flash.c
index e766895bb0..d535924f86 100644
--- a/board/esd/cpci405/flash.c
+++ b/board/esd/cpci405/flash.c
@@ -66,7 +66,7 @@ unsigned long flash_init (void)
unsigned long base_b0, base_b1;
/* Init: no FLASHes known */
- for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+ for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
flash_info[i].flash_id = FLASH_UNKNOWN;
}