]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ppmc8260/strataflash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / ppmc8260 / strataflash.c
index bb2184895bdccc2b1acc34bdf1e856e078b6b6f8..6d5a853829af91c8c2c7757df20550ae0d277df9 100644 (file)
@@ -201,7 +201,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
 #if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
-       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+CFG_MONITOR_LEN-1; i++)
+       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+monitor_flash_len-1; i++)
                (void)flash_real_protect(&flash_info[0], i, 1);
 #endif