]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data.h: make <asm-generic/global_data.h> self-contained
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Feb 2020 17:22:27 +0000 (02:22 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 16 Mar 2020 16:49:09 +0000 (12:49 -0400)
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>
include/asm-generic/global_data.h

index 5d027329fe0f048c6b9ba88b84510cfcbe734872..d9e220cfe3582eaf2bca571495cb7dd3ac0d13ba 100644 (file)
@@ -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!             */