From d024236e5a31a2b4b82cbcc98b31b8170fc88d28 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 18 Apr 2018 13:50:47 -0400 Subject: Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR We have a large number of places where while we historically referenced gd in the code we no longer do, as well as cases where the code added that line "just in case" during development and never dropped it. Signed-off-by: Tom Rini --- drivers/pci/pci-aardvark.c | 2 -- drivers/pci/pci-emul-uclass.c | 2 -- drivers/pci/pci_sandbox.c | 2 -- drivers/pci/pci_tegra.c | 2 -- 4 files changed, 8 deletions(-) (limited to 'drivers/pci') diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index 69a4d81c2e..864ac16f57 100644 --- a/drivers/pci/pci-aardvark.c +++ b/drivers/pci/pci-aardvark.c @@ -131,8 +131,6 @@ #define CFG_RD_UR_VAL 0xFFFFFFFF #define CFG_RD_CRS_VAL 0xFFFF0001 -DECLARE_GLOBAL_DATA_PTR; - /** * struct pcie_advk - Advk PCIe controller state * diff --git a/drivers/pci/pci-emul-uclass.c b/drivers/pci/pci-emul-uclass.c index dcea192418..f89acd41dc 100644 --- a/drivers/pci/pci-emul-uclass.c +++ b/drivers/pci/pci-emul-uclass.c @@ -12,8 +12,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - struct sandbox_pci_priv { int dev_count; }; diff --git a/drivers/pci/pci_sandbox.c b/drivers/pci/pci_sandbox.c index 6a84ee386d..cd7ed0069a 100644 --- a/drivers/pci/pci_sandbox.c +++ b/drivers/pci/pci_sandbox.c @@ -11,8 +11,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - static int sandbox_pci_write_config(struct udevice *bus, pci_dev_t devfn, uint offset, ulong value, enum pci_size_t size) diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c index b5bd25ec56..2829b963b0 100644 --- a/drivers/pci/pci_tegra.c +++ b/drivers/pci/pci_tegra.c @@ -43,8 +43,6 @@ * use the new standard APIs, with no ifdefs. */ -DECLARE_GLOBAL_DATA_PTR; - #define AFI_AXI_BAR0_SZ 0x00 #define AFI_AXI_BAR1_SZ 0x04 #define AFI_AXI_BAR2_SZ 0x08 -- cgit v1.2.3