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