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