summaryrefslogtreecommitdiff
path: root/board/mcc200
diff options
context:
space:
mode:
Diffstat (limited to 'board/mcc200')
-rw-r--r--board/mcc200/mcc200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/mcc200/mcc200.c b/board/mcc200/mcc200.c
index b9b9a712b8..6e2d564c5b 100644
--- a/board/mcc200/mcc200.c
+++ b/board/mcc200/mcc200.c
@@ -249,7 +249,7 @@ int misc_init_r (void)
*(volatile int*)MPC5XXX_CS0_CFG |= (1 << 6);
flash_protect (FLAG_PROTECT_CLEAR,
flash_info[0].start[0] + flash_info[0].size / 2,
- (flash_info[0].start[0] + flash_info[0].size) / 2 - 1,
+ (flash_info[0].start[0] - 1) + flash_info[0].size,
&flash_info[0]);
*(volatile int*)MPC5XXX_CS0_CFG &= ~(1 << 6);
}