]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/fads/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / fads / flash.c
index 22a7c410ce4b8fe941caeb5aabb33f5742dfd5e4..680a2dc93ccbeea5a37eccb32142a488878605cd 100644 (file)
@@ -112,7 +112,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[i]);
 #endif