X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fflash.c;h=cd1758d7e2ef7f49cdf992e6707eb31db6ab2c45;hb=d5974af7f7626777b5c41894f75c813ff35c1793;hp=85d18bb2c53a4787af348147fe2dd1a4b7242c42;hpb=2e192b245ed36a63bab0ef576999a95e23f60ecd;p=oweals%2Fu-boot.git diff --git a/cmd/flash.c b/cmd/flash.c index 85d18bb2c5..cd1758d7e2 100644 --- a/cmd/flash.c +++ b/cmd/flash.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -11,10 +10,6 @@ #include #include -#ifdef CONFIG_HAS_DATAFLASH -#include -#endif - #if defined(CONFIG_CMD_MTDPARTS) #include @@ -25,7 +20,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 +266,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