瀏覽代碼

x86: Add missing DECLARE_GLOBAL_DATA_PTR for pci.c

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>
Bin Meng 10 年之前
父節點
當前提交
4722c035cf
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/cpu/pci.c

+ 2 - 0
arch/x86/cpu/pci.c

@@ -15,6 +15,8 @@
 #include <pci.h>
 #include <pci.h>
 #include <asm/pci.h>
 #include <asm/pci.h>
 
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static struct pci_controller x86_hose;
 static struct pci_controller x86_hose;
 
 
 int pci_early_init_hose(struct pci_controller **hosep)
 int pci_early_init_hose(struct pci_controller **hosep)