]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/esteem192e/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / esteem192e / flash.c
index 55845fac111a8c2beaeea8d896c32421701ba278..5322430de383badc375059c69ffee5a5ad0f9023 100644 (file)
@@ -104,7 +104,7 @@ unsigned long flash_init (void)
        /* monitor protection ON by default */
        (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
 
@@ -124,7 +124,7 @@ unsigned long flash_init (void)
                /* monitor protection ON by default */
                (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[1]);
 #endif
        } else {