X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fu-boot.git;a=blobdiff_plain;f=cmd%2Fflash.c;h=b150940bf3a99396fdfdf691465a1d2b6cc27a98;hp=85d18bb2c53a4787af348147fe2dd1a4b7242c42;hb=e856bdcfb49291d30b19603fc101bea096c48196;hpb=a931e9975bd8fa2a1866d560de6a388042d00f0b diff --git a/cmd/flash.c b/cmd/flash.c index 85d18bb2c5..b150940bf3 100644 --- a/cmd/flash.c +++ b/cmd/flash.c @@ -25,7 +25,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,11 +271,11 @@ 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 @@ -283,7 +283,7 @@ static int do_flinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) 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