diff options
author | Tom Rini <trini@konsulko.com> | 2018-04-18 13:50:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-27 14:54:48 -0400 |
commit | d024236e5a31a2b4b82cbcc98b31b8170fc88d28 (patch) | |
tree | ab4d96f1b0c5e3991b97708f72679a7af7234222 /drivers/usb | |
parent | f1b1f77060beadbfe9f42a3be00019bd025afbd6 (diff) | |
download | u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.gz u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.bz2 u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.zip |
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 <trini@konsulko.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/emul/sandbox_flash.c | 2 | ||||
-rw-r--r-- | drivers/usb/emul/sandbox_hub.c | 2 | ||||
-rw-r--r-- | drivers/usb/emul/sandbox_keyb.c | 2 | ||||
-rw-r--r-- | drivers/usb/emul/usb-emul-uclass.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/dwc2.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/dwc3-of-simple.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ehci-atmel.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/usb-sandbox.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/usb-uclass.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-dwc3.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-fsl.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-mvebu.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-omap.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-rockchip.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/xhci-zynqmp.c | 2 |
16 files changed, 0 insertions, 32 deletions
diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c index 2f84b360ec..dbece6ecf2 100644 --- a/drivers/usb/emul/sandbox_flash.c +++ b/drivers/usb/emul/sandbox_flash.c @@ -11,8 +11,6 @@ #include <scsi.h> #include <usb.h> -DECLARE_GLOBAL_DATA_PTR; - /* * This driver emulates a flash stick using the UFI command specification and * the BBB (bulk/bulk/bulk) protocol. It supports only a single logical unit diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c index 9a0f47b81c..f5dda8123f 100644 --- a/drivers/usb/emul/sandbox_hub.c +++ b/drivers/usb/emul/sandbox_hub.c @@ -10,8 +10,6 @@ #include <usb.h> #include <dm/device-internal.h> -DECLARE_GLOBAL_DATA_PTR; - /* We only support up to 8 */ #define SANDBOX_NUM_PORTS 4 diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c index cff017668f..2fb67e7611 100644 --- a/drivers/usb/emul/sandbox_keyb.c +++ b/drivers/usb/emul/sandbox_keyb.c @@ -11,8 +11,6 @@ #include <scsi.h> #include <usb.h> -DECLARE_GLOBAL_DATA_PTR; - /* * This driver emulates a USB keyboard using the USB HID specification (boot * protocol) diff --git a/drivers/usb/emul/usb-emul-uclass.c b/drivers/usb/emul/usb-emul-uclass.c index fbe11f3135..01ae6dfce7 100644 --- a/drivers/usb/emul/usb-emul-uclass.c +++ b/drivers/usb/emul/usb-emul-uclass.c @@ -10,8 +10,6 @@ #include <usb.h> #include <dm/device-internal.h> -DECLARE_GLOBAL_DATA_PTR; - static int copy_to_unicode(char *buff, int length, const char *str) { int ptr; diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 4862ab0e7d..b63a630d37 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -19,8 +19,6 @@ #include "dwc2.h" -DECLARE_GLOBAL_DATA_PTR; - /* Use only HC channel 0. */ #define DWC2_HC_CHANNEL 0 diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index 440dd1027d..9b122b18bc 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -17,8 +17,6 @@ #include <reset.h> #include <clk.h> -DECLARE_GLOBAL_DATA_PTR; - struct dwc3_of_simple { struct clk_bulk clks; struct reset_ctl_bulk resets; diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index f6c6b019ca..f912510a21 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -15,8 +15,6 @@ #include "ehci.h" -DECLARE_GLOBAL_DATA_PTR; - #ifndef CONFIG_DM_USB int ehci_hcd_init(int index, enum usb_init_type init, diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index f317cf00ea..f07a287dd4 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -20,8 +20,6 @@ #include "ehci.h" -DECLARE_GLOBAL_DATA_PTR; - #define USB1_ADDR_MASK 0xFFFF0000 #define HOSTPC1_DEVLC 0x84 diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index 15055b351a..1a35a00bff 100644 --- a/drivers/usb/host/usb-sandbox.c +++ b/drivers/usb/host/usb-sandbox.c @@ -10,8 +10,6 @@ #include <usb.h> #include <dm/root.h> -DECLARE_GLOBAL_DATA_PTR; - struct sandbox_usb_ctrl { int rootdev; }; diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index 4e40f4bc3d..fa7a4397e4 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -16,8 +16,6 @@ #include <dm/lists.h> #include <dm/uclass-internal.h> -DECLARE_GLOBAL_DATA_PTR; - extern bool usb_started; /* flag for the started/stopped USB status */ static bool asynch_allowed; diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index adfa4a75cd..912190b8bc 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -19,8 +19,6 @@ #include <linux/usb/dwc3.h> #include <linux/usb/otg.h> -DECLARE_GLOBAL_DATA_PTR; - struct xhci_dwc3_platdata { struct phy *usb_phys; int num_phys; diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index f77c78d422..25b14a9a8d 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -20,8 +20,6 @@ #include <dm.h> /* Declare global data pointer */ -DECLARE_GLOBAL_DATA_PTR; - #ifndef CONFIG_DM_USB static struct fsl_xhci fsl_xhci; unsigned long ctr_addr[] = FSL_USB_XHCI_ADDR; diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index dbdfce38da..f51e677386 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -15,8 +15,6 @@ #include "xhci.h" -DECLARE_GLOBAL_DATA_PTR; - struct mvebu_xhci_platdata { fdt_addr_t hcd_base; }; diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index b814500bdb..d05b302807 100644 --- a/drivers/usb/host/xhci-omap.c +++ b/drivers/usb/host/xhci-omap.c @@ -23,8 +23,6 @@ #include "xhci.h" /* Declare global data pointer */ -DECLARE_GLOBAL_DATA_PTR; - static struct omap_xhci omap; static int omap_xhci_core_init(struct omap_xhci *omap) diff --git a/drivers/usb/host/xhci-rockchip.c b/drivers/usb/host/xhci-rockchip.c index b1f9884273..7f637d9237 100644 --- a/drivers/usb/host/xhci-rockchip.c +++ b/drivers/usb/host/xhci-rockchip.c @@ -16,8 +16,6 @@ #include "xhci.h" -DECLARE_GLOBAL_DATA_PTR; - struct rockchip_xhci_platdata { fdt_addr_t hcd_base; fdt_addr_t phy_base; diff --git a/drivers/usb/host/xhci-zynqmp.c b/drivers/usb/host/xhci-zynqmp.c index cec1bc46d0..c57e9abbaf 100644 --- a/drivers/usb/host/xhci-zynqmp.c +++ b/drivers/usb/host/xhci-zynqmp.c @@ -19,8 +19,6 @@ #include "xhci.h" /* Declare global data pointer */ -DECLARE_GLOBAL_DATA_PTR; - /* Default to the ZYNQMP XHCI defines */ #define USB3_PWRCTL_CLK_CMD_MASK 0x3FE000 #define USB3_PWRCTL_CLK_FREQ_MASK 0xFFC |