]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cpu86/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / cpu86 / flash.c
index 8cf761f1e65512ee3a2cf053a792e51d3ab71ce0..0769dc5c62652dcb0abe3402ccbc77294e1b71c9 100644 (file)
@@ -218,14 +218,14 @@ unsigned long flash_init (void)
 
                flash_protect  (FLAG_PROTECT_SET,
                                CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1, &flash_info[1]
+                               CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[1]
                );
        }
 #else
 #if CFG_MONITOR_BASE >= CFG_FLASH_BASE
        flash_protect (FLAG_PROTECT_SET,
                       CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1, &flash_info[0]
+                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
        );
 #endif
 #endif