]> git.sur5r.net Git - u-boot/blobdiff - board/ep8260/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[u-boot] / board / ep8260 / flash.c
index cae8a13dde0e5df6fa3dfb292ea988db9c9d0155..d9dbdbee921306617f7210cbdb0459a7ff69e8fb 100644 (file)
@@ -140,7 +140,7 @@ unsigned long flash_init (void)
 #if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
     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