board/[m-p]*: Remove obsolete references to CONFIG_COMMANDS
[oweals/u-boot.git] / board / wepep250 / flash.c
index 319dddc4b26ff325567792634b4fa0697d061cca..2a322903d5f9427d4797b7de8a64b277f522f95c 100644 (file)
@@ -135,7 +135,7 @@ ulong 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,
@@ -201,7 +201,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                } else {
                        printf ("Erasing sector %2d ... ", sector);
                }
-       
+
                address = (FLASH_BUS *) (info->start[sector]);
 
                *address = FLASH_CMD (CFI_INTEL_CMD_BLOCK_ERASE);