]> git.sur5r.net Git - u-boot/blobdiff - board/esd/cpci440/strataflash.c
Fix problems with ld version 2.16 (dot outside sections problem)
[u-boot] / board / esd / cpci440 / strataflash.c
index 6f6286694bdaebfad3ec5a201cc229e8b793c30a..2f055c20d5bd62a50554b019a5e8438753d289ed 100644 (file)
@@ -89,8 +89,6 @@
 #define FLASH_MAN_CFI                  0x01000000
 
 
-
-
 typedef union {
        unsigned char c;
        unsigned short w;
@@ -113,7 +111,6 @@ flash_info_t        flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
  */
 
 
-
 static void flash_add_byte(flash_info_t *info, cfiword_t * cword, uchar c);
 static void flash_make_cmd(flash_info_t * info, uchar cmd, void * cmdbuf);
 static void flash_write_cmd(flash_info_t * info, int sect, uchar offset, uchar cmd);
@@ -200,7 +197,7 @@ unsigned long flash_init (void)
 #if 0 /* test-only */
        /* Monitor protection ON by default */
 #if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
-       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+CFG_MONITOR_LEN-1; i++)
+       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+monitor_flash_len-1; i++)
                (void)flash_real_protect(&flash_info[0], i, 1);
 #endif
 #endif