]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/hymod/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / hymod / flash.c
index ee052e39593dd242ec3513a98bfb1e4a5a376142..0a09b4a70e5d57ed59fbc66eed7c1c47b45e9ddf 100644 (file)
@@ -321,7 +321,7 @@ flash_init(void)
 #if CFG_MONITOR_BASE == CFG_FLASH_BASE
        (void)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