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