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