]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mpl/common/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / mpl / common / flash.c
index 483d0fff34a355c6a5c68641db9f8f483c493ee8..563039b9cd077f778b94c0421f5deb06687156aa 100644 (file)
@@ -102,7 +102,7 @@ unsigned long flash_init (void)
 #if CFG_MONITOR_BASE >= CFG_FLASH_BASE
        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]);
 #endif
        size_b1 = 0 ;