From e6f2e902334d5ee65bab9cf8292cf668243531e9 Mon Sep 17 00:00:00 2001 From: Marian Balakowicz Date: Tue, 11 Oct 2005 19:09:42 +0200 Subject: Added support for TQM834x boards. --- common/cmd_bootm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/cmd_bootm.c') diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index ab6ccbb07c..6a5576cd9f 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -84,7 +84,7 @@ static int image_info (unsigned long addr); #if (CONFIG_COMMANDS & CFG_CMD_IMLS) #include -extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */ +extern flash_info_t flash_info[]; /* info for FLASH chips */ static int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); #endif @@ -1082,7 +1082,7 @@ int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) for (i=0, info=&flash_info[0]; iflash_id == FLASH_UNKNOWN) goto next_bank; - for (j=0; jsector_count; ++j) { if (!(hdr=(image_header_t *)info->start[j]) || (ntohl(hdr->ih_magic) != IH_MAGIC)) -- cgit