From patchwork Fri Jun 26 06:13:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 243007 List-Id: U-Boot discussion From: masahiroy at kernel.org (Masahiro Yamada) Date: Fri, 26 Jun 2020 15:13:35 +0900 Subject: [PATCH 3/3] asm/u-boot.h: remove bd_t definitions In-Reply-To: <20200626061335.1611120-1-masahiroy@kernel.org> References: <20200626061335.1611120-1-masahiroy@kernel.org> Message-ID: <20200626061335.1611120-3-masahiroy@kernel.org> All the users of bd_t were converted to struct bd_info. Remove the definitions. Signed-off-by: Masahiro Yamada --- arch/nds32/include/asm/u-boot.h | 5 ++--- arch/riscv/include/asm/u-boot.h | 5 ++--- include/asm-generic/u-boot.h | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/nds32/include/asm/u-boot.h b/arch/nds32/include/asm/u-boot.h index 8c949e7fb7..815cb93030 100644 --- a/arch/nds32/include/asm/u-boot.h +++ b/arch/nds32/include/asm/u-boot.h @@ -21,8 +21,7 @@ #include - -typedef struct bd_info { +struct bd_info { unsigned long bi_arch_number; /* unique id for this board */ unsigned long bi_boot_params; /* where this board expects params */ unsigned long bi_memstart; /* start of DRAM memory */ @@ -37,7 +36,7 @@ typedef struct bd_info { unsigned long start; unsigned long size; } bi_dram[CONFIG_NR_DRAM_BANKS]; -} bd_t; +}; /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_NDS32 diff --git a/arch/riscv/include/asm/u-boot.h b/arch/riscv/include/asm/u-boot.h index 5ba8e77812..dac20bffda 100644 --- a/arch/riscv/include/asm/u-boot.h +++ b/arch/riscv/include/asm/u-boot.h @@ -20,8 +20,7 @@ #include - -typedef struct bd_info { +struct bd_info { unsigned long bi_boot_params; /* where this board expects params */ unsigned long bi_memstart; /* start of DRAM memory */ unsigned long bi_memsize; /* size of DRAM memory in bytes */ @@ -35,7 +34,7 @@ typedef struct bd_info { unsigned long start; unsigned long size; } bi_dram[CONFIG_NR_DRAM_BANKS]; -} bd_t; +}; /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_RISCV diff --git a/include/asm-generic/u-boot.h b/include/asm-generic/u-boot.h index 6f749736f1..4bf06fb379 100644 --- a/include/asm-generic/u-boot.h +++ b/include/asm-generic/u-boot.h @@ -26,7 +26,7 @@ #include #include -typedef struct bd_info { +struct bd_info { unsigned long bi_memstart; /* start of DRAM memory */ phys_size_t bi_memsize; /* size of DRAM memory in bytes */ unsigned long bi_flashstart; /* start of FLASH memory */ @@ -94,7 +94,7 @@ typedef struct bd_info { phys_size_t size; } bi_dram[CONFIG_NR_DRAM_BANKS]; #endif /* CONFIG_NR_DRAM_BANKS */ -} bd_t; +}; #endif /* __ASSEMBLY__ */