]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/RPXlite/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / RPXlite / flash.c
index 78c1838b792cc896f347009529e7ca2069311aa9..846794df3f76456f921416958c37bd0ae7dacd41 100644 (file)
@@ -85,7 +85,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