X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=cmd%2Fflash.c;h=a2803e8ee47d9bbdeee75a6b623f9b6d5a8cb00a;hb=ede52d04825d69a9aca4d048dae89f3b85e8f504;hp=85d18bb2c53a4787af348147fe2dd1a4b7242c42;hpb=2e192b245ed36a63bab0ef576999a95e23f60ecd;p=people%2Fms%2Fu-boot.git diff --git a/cmd/flash.c b/cmd/flash.c index 85d18bb2c5..a2803e8ee4 100644 --- a/cmd/flash.c +++ b/cmd/flash.c @@ -11,10 +11,6 @@ #include #include -#ifdef CONFIG_HAS_DATAFLASH -#include -#endif - #if defined(CONFIG_CMD_MTDPARTS) #include @@ -25,7 +21,7 @@ int find_dev_and_part(const char *id, struct mtd_device **dev, u8 *part_num, struct part_info **part); #endif -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH #include #include extern flash_info_t flash_info[]; /* info for FLASH chips */ @@ -271,19 +267,15 @@ flash_fill_sect_ranges (ulong addr_first, ulong addr_last, return rcode; } -#endif /* CONFIG_SYS_NO_FLASH */ +#endif /* CONFIG_MTD_NOR_FLASH */ static int do_flinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH ulong bank; #endif -#ifdef CONFIG_HAS_DATAFLASH - dataflash_print_info(); -#endif - -#ifndef CONFIG_SYS_NO_FLASH +#ifdef CONFIG_MTD_NOR_FLASH if (argc == 1) { /* print info for all FLASH banks */ for (bank=0; bank