]> git.sur5r.net Git - u-boot/blobdiff - board/lubbock/flash.c
sh: Fix SH-boards compile error
[u-boot] / board / lubbock / flash.c
index dcf829b2c55f4d2c149edaab89da73af19205c21..ba82892dde557e22b1ea97b1e75828e17460c4ed 100644 (file)
@@ -76,7 +76,7 @@ unsigned long flash_init (void)
                        flash_get_offsets (PHYS_FLASH_2, &flash_info[i]);
                        break;
                default:
-                       panic ("configured to many flash banks!\n");
+                       panic ("configured too many flash banks!\n");
                        break;
                }
                size += flash_info[i].size;
@@ -86,7 +86,7 @@ unsigned long flash_init (void)
         */
        flash_protect ( FLAG_PROTECT_SET,
                        CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + _armboot_end_data - _armboot_start,
+                       CFG_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,