summaryrefslogtreecommitdiff
path: root/board/cm41xx/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cm41xx/flash.c')
-rw-r--r--board/cm41xx/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cm41xx/flash.c b/board/cm41xx/flash.c
index d6fd519..2e1356f 100644
--- a/board/cm41xx/flash.c
+++ b/board/cm41xx/flash.c
@@ -72,7 +72,7 @@ unsigned long flash_init (void)
*/
flash_protect (FLAG_PROTECT_SET,
CONFIG_SYS_FLASH_BASE,
- CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start,
+ CONFIG_SYS_FLASH_BASE + _bss_start_ofs,
&flash_info[0]);
return size;