]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/iphase4539/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / iphase4539 / flash.c
index 401ffbe415f0a2fc102205d31a9b3034752b795e..4eca46720cc92ef395a3c5248ff203d23f15e71c 100644 (file)
@@ -71,7 +71,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 + bank);
 #endif