]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/flagadm/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / flagadm / flash.c
index fc5d963a91fa0b2e203ff03fcbbd6b7986b47e86..fd0082c135b05c4f320b1e2d04a6863bf5a57e2d 100644 (file)
@@ -77,7 +77,7 @@ unsigned long flash_init (void)
        /* monitor protection ON by default */
        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