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