diff options
author | Tom Rini <trini@konsulko.com> | 2022-08-04 16:53:39 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-04 16:54:01 -0400 |
commit | b8e09898919e23c5d7f1934be7bf9a3a6f0deb0e (patch) | |
tree | ba1c168b729947aec2a487791e5a26ce72da4282 /cmd/jffs2.c | |
parent | 62e6418031bed3671e57e63d49273e2739a82589 (diff) | |
parent | 78475d2572615471d3c047e61481a68859d0dd7f (diff) |
Merge branch '2022-08-04-Kconfig-migrations'
- Further migrations to Kconfig and associated dead code removal.
Diffstat (limited to 'cmd/jffs2.c')
-rw-r--r-- | cmd/jffs2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/jffs2.c b/cmd/jffs2.c index 914a7beeed9..e00fcc20226 100644 --- a/cmd/jffs2.c +++ b/cmd/jffs2.c @@ -73,7 +73,9 @@ #include <common.h> #include <command.h> #include <env.h> +#if defined(CONFIG_CMD_FLASH) #include <flash.h> +#endif #include <image.h> #include <malloc.h> #include <jffs2/jffs2.h> @@ -156,7 +158,6 @@ static int mtd_device_validate(u8 type, u8 num, u32 *size) if (type == MTD_DEV_TYPE_NOR) { #if defined(CONFIG_CMD_FLASH) if (num < CONFIG_SYS_MAX_FLASH_BANKS) { - extern flash_info_t flash_info[]; *size = flash_info[num].size; return 0; @@ -260,8 +261,6 @@ static inline u32 get_part_sector_size_nand(struct mtdids *id) static inline u32 get_part_sector_size_nor(struct mtdids *id, struct part_info *part) { #if defined(CONFIG_CMD_FLASH) - extern flash_info_t flash_info[]; - u32 end_phys, start_phys, sector_size = 0, size = 0; int i; flash_info_t *flash; |