diff mbox

[U-Boot,v2,1/7] x86: Add missing DECLARE_GLOBAL_DATA_PTR for pci.c

Message ID 1419682210-21181-2-git-send-email-bmeng.cn@gmail.com
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng Dec. 27, 2014, 12:10 p.m. UTC
arch/x86/cpu/pci.c has access to the U-Boot global data thus
DECLARE_GLOBAL_DATA_PTR is needed.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

---

Changes in v2:
- Add a commit message

 arch/x86/cpu/pci.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass Dec. 28, 2014, 1:55 a.m. UTC | #1
On 27 December 2014 at 05:10, Bin Meng <bmeng.cn@gmail.com> wrote:
> arch/x86/cpu/pci.c has access to the U-Boot global data thus
> DECLARE_GLOBAL_DATA_PTR is needed.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Acked-by: Simon Glass <sjg@chromium.org>

>
> ---
>
> Changes in v2:
> - Add a commit message
>
>  arch/x86/cpu/pci.c | 2 ++
>  1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c
index f3492c3..404fbb6 100644
--- a/arch/x86/cpu/pci.c
+++ b/arch/x86/cpu/pci.c
@@ -15,6 +15,8 @@ 
 #include <pci.h>
 #include <asm/pci.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static struct pci_controller x86_hose;
 
 int pci_early_init_hose(struct pci_controller **hosep)