]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/genietv/flash.c
* Get (mostly) rid of CFG_MONITOR_LEN definition; compute real length
[karo-tx-uboot.git] / board / genietv / flash.c
index 2314a53e7367d412a5afa7dd10d771352981c829..f12d0be552598830523578de19d280ccc9ab9763 100644 (file)
@@ -55,7 +55,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[0]);
 #endif