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