]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/RRvision/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / RRvision / flash.c
index 06f7c4b7ac24088be403a4b19023d3f58984c8d9..d8e07e6450fef91630eaa898ef647a9b38b10ba1 100644 (file)
@@ -73,7 +73,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