summaryrefslogtreecommitdiff
path: root/board/ppmc8260/strataflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/ppmc8260/strataflash.c')
-rw-r--r--board/ppmc8260/strataflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/ppmc8260/strataflash.c b/board/ppmc8260/strataflash.c
index bb21848..6d5a853 100644
--- a/board/ppmc8260/strataflash.c
+++ b/board/ppmc8260/strataflash.c
@@ -201,7 +201,7 @@ unsigned long flash_init (void)
/* Monitor protection ON by default */
#if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
- for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+CFG_MONITOR_LEN-1; i++)
+ for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+monitor_flash_len-1; i++)
(void)flash_real_protect(&flash_info[0], i, 1);
#endif