summaryrefslogtreecommitdiff
path: root/include/asm-generic/global_data.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-02-24 20:22:27 +0300
committerTom Rini <trini@konsulko.com>2020-03-16 19:49:09 +0300
commitb36992fb6b6d2d53a2cf1a5158ad6ed1335b0de9 (patch)
treea0840a9dc8b425c26b9a3e19127cd460bb82a699 /include/asm-generic/global_data.h
parent7a212e56170bcf840d088b48f5010f1456203449 (diff)
downloadu-boot-b36992fb6b6d2d53a2cf1a5158ad6ed1335b0de9.tar.xz
global_data.h: make <asm-generic/global_data.h> self-contained
The compiler never knows what 'bd_t' is without including <asm/u-boot.h>. By changing it to (struct bd_info), the compiler learns it is struct. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'include/asm-generic/global_data.h')
-rw-r--r--include/asm-generic/global_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 5d027329fe..d9e220cfe3 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -25,7 +25,7 @@
#include <linux/list.h>
typedef struct global_data {
- bd_t *bd;
+ struct bd_info *bd;
unsigned long flags;
unsigned int baudrate;
unsigned long cpu_clk; /* CPU clock in Hz! */