]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/purple/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / purple / flash.c
index 56d3acd160e67883245522c81b56889ebc1223bd..34f1b91c40003fee8d6858a4d3207624a25b6c28 100644 (file)
@@ -233,7 +233,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_get_info(CFG_MONITOR_BASE));
 #endif