]> git.sur5r.net Git - u-boot/blobdiff - board/sixnet/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[u-boot] / board / sixnet / flash.c
index c201875ba0e4a2aa321a3aba2549c373d9d42244..3bf2ff85db4b3805dfb7fc941da5042c8c1ab6bc 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