]> git.sur5r.net Git - u-boot/blobdiff - board/cmi/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[u-boot] / board / cmi / flash.c
index b41ff12520e898470056aca8bb1e018e3794c753..9c802b9131dccb4649769cedc1138743e7a988e5 100644 (file)
@@ -106,7 +106,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