Merge with git://www.denx.de/git/u-boot.git
[oweals/u-boot.git] / board / mpc8266ads / flash.c
index b876d1cddd1812532103adfcf47625804d50e9b5..9512c72a0b94bb843f4e8af9426b7fcfa312dc7b 100644 (file)
@@ -101,7 +101,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