]> git.sur5r.net Git - u-boot/blobdiff - board/kup4k/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[u-boot] / board / kup4k / flash.c
index 3837457687100808e269dde2adc487e8f6912ab1..7297c159e0e0d08243c2e11b107ba42767bacecc 100644 (file)
@@ -74,7 +74,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