From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Tue, 27 Mar 2007 18:20:18 +0200 Subject: [U-Boot-Users] "24.noflash":(1 of 1) [PATCH] Remove unneccessary code, if parallel flash is not available. Message-ID: <46094442.1080109@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Author: Ulf Samuelsson Date: 2007-03-27 Subject: "24.noflash":(1 of 1) [PATCH] Remove unneccessary code, if parallel flash is not available. CHANGELOG: [PATCH] Remove unneccessary code, if parallel flash is not available. Patch generated from files: common_cmd_flash.c.patch common_cmd_mem.c.patch Signed-off-by: Ulf Samuelsson --------------------------------------------------------------------------------------------------------------------------------- diff -urN u-boot-1.2.0/common/cmd_flash.c u-boot-1.2.0-atmel/common/cmd_flash.c --- u-boot-1.2.0/common/cmd_flash.c 2007-01-07 00:13:11.000000000 +0100 +++ u-boot-1.2.0-atmel/common/cmd_flash.c 2007-03-24 20:07:32.000000000 +0100 @@ -43,6 +43,7 @@ u8 *part_num, struct part_info **part); #endif +#ifndef CFG_NO_FLASH extern flash_info_t flash_info[]; /* info for FLASH chips */ /* @@ -277,6 +278,7 @@ return rcode; } +#endif /* CFG_NO_FLASH */ int do_flinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { @@ -285,7 +287,7 @@ #ifdef CONFIG_HAS_DATAFLASH dataflash_print_info(); #endif - +#ifndef CFG_NO_FLASH if (argc == 1) { /* print info for all FLASH banks */ for (bank=0; bank