@@ -21,8 +21,7 @@
#include <asm/u-boot-nds32.h>
-
-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
@@ -20,8 +20,7 @@
#include <asm/u-boot-riscv.h>
-
-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
@@ -26,7 +26,7 @@
#include <asm/types.h>
#include <linux/types.h>
-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__ */
All the users of bd_t were converted to struct bd_info. Remove the definitions. Signed-off-by: Masahiro Yamada <masahiroy at kernel.org> --- 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(-)