]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cogent/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / cogent / flash.c
index 86da80edb81494f326d55d2ede794d4cd1a2468e..969520d277be263972f54019cbd19cfd6516b4d9 100644 (file)
@@ -323,7 +323,7 @@ flash_init(void)
 #if CFG_MONITOR_BASE == CFG_FLASH_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