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