]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ip860/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / ip860 / flash.c
index 4b0ea9bb01931647b4bacfa9658ba16870cc0979..2cf23b3e8c521e8e44c601caf7b81ba11da66fb0 100644 (file)
@@ -90,7 +90,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