summaryrefslogtreecommitdiffstats
path: root/board/netvia/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/netvia/flash.c')
-rw-r--r--board/netvia/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/netvia/flash.c b/board/netvia/flash.c
index 4204c34193..669031f735 100644
--- a/board/netvia/flash.c
+++ b/board/netvia/flash.c
@@ -66,7 +66,7 @@ unsigned long flash_init(void)
flash_get_offsets(CFG_FLASH_BASE, &flash_info[0]);
/* monitor protection ON by default */
- flash_protect(FLAG_PROTECT_SET, CFG_FLASH_BASE, CFG_FLASH_BASE + CFG_MONITOR_LEN - 1, &flash_info[0]);
+ flash_protect(FLAG_PROTECT_SET, CFG_FLASH_BASE, CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
flash_info[0].size = size;
OpenPOWER on IntegriCloud