]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/rpxsuper/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / rpxsuper / flash.c
index 0c298ba858fa2d534cace9e3c9a160c5a5182e01..73281bd4e20dd97837441243a24fb7b44751573d 100644 (file)
@@ -67,7 +67,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