summaryrefslogtreecommitdiffstats
path: root/board/rsdproto/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/rsdproto/flash.c')
-rw-r--r--board/rsdproto/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/rsdproto/flash.c b/board/rsdproto/flash.c
index 654012f607..d90e7db547 100644
--- a/board/rsdproto/flash.c
+++ b/board/rsdproto/flash.c
@@ -123,11 +123,11 @@ unsigned long flash_init (void)
#if CFG_MONITOR_BASE >= PHYS_FLASH
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
- CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+ CFG_MONITOR_BASE+monitor_flash_len-1,
&flash_info[0]);
flash_protect(FLAG_PROTECT_SET,
CFG_MONITOR_BASE,
- CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+ CFG_MONITOR_BASE+monitor_flash_len-1,
&flash_info[1]);
#endif
OpenPOWER on IntegriCloud