]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Add some missing global_data declarations in files that use gd
authorSimon Glass <sjg@chromium.org>
Fri, 31 Jul 2015 15:31:31 +0000 (09:31 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Aug 2015 14:42:41 +0000 (08:42 -0600)
Some files use global_data but don't declare it. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mp_init.c
arch/x86/lib/bootm.c
arch/x86/lib/fsp/fsp_common.c
arch/x86/lib/lpc-uclass.c
arch/x86/lib/pch-uclass.c
drivers/gpio/intel_ich6_gpio.c

index e686b28c9ca3bd6a0747861ccb5da4db32753122..3294a50b760cd2ee76802733dd30a4fa1db1d58c 100644 (file)
@@ -24,6 +24,8 @@
 #include <dm/uclass-internal.h>
 #include <linux/linkage.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* Total CPUs include BSP */
 static int num_cpus;
 
index 86030cf52aab1c3994d805d47d16c17e27178f05..445ee6e45546a9e9c1d1d41fe8c5871d03a277af 100644 (file)
@@ -22,6 +22,8 @@
 #include <asm/arch/timestamp.h>
 #endif
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define COMMAND_LINE_OFFSET 0x9000
 
 /*
index 5b256324e1721c546ca058eb83468060274feaae..c585710824cce08cb9a0fcba2fb957f0591ce425 100644 (file)
@@ -11,6 +11,8 @@
 #include <asm/processor.h>
 #include <asm/fsp/fsp_support.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int print_cpuinfo(void)
 {
        post_code(POST_CPU_INFO);
index 6aeb4d461a9b5e952d255955e185c1a7874591d9..c6e8f73d2254934497e9938bb8938188fd750d81 100644 (file)
@@ -9,6 +9,8 @@
 #include <dm.h>
 #include <dm/root.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static int lpc_uclass_post_bind(struct udevice *bus)
 {
        /*
index d1082e1a475b5aaeb37a7861c5befbc5936355c7..20dfa815d20c3847ec5cbceb74fdf86a11688def 100644 (file)
@@ -9,6 +9,8 @@
 #include <dm.h>
 #include <dm/root.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static int pch_uclass_post_bind(struct udevice *bus)
 {
        /*
index 8a108f3805a0b7929ea69dfdde3cf72784006b34..cb408a413e647c2861af3d600768d75a1b198895 100644 (file)
@@ -35,6 +35,8 @@
 #include <asm/io.h>
 #include <asm/pci.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define GPIO_PER_BANK  32
 
 struct ich6_bank_priv {