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 --- common/cros_ec.c | 2 -- common/lynxkdi.c | 2 -- common/main.c | 2 -- common/spl/spl_mmc.c | 2 -- common/spl/spl_net.c | 2 -- common/spl/spl_sata.c | 2 -- common/spl/spl_sdp.c | 2 -- common/spl/spl_usb.c | 2 -- common/usb_hub.c | 2 -- 9 files changed, 18 deletions(-) (limited to 'common') diff --git a/common/cros_ec.c b/common/cros_ec.c index 7a4f785bc8..1a0caf80dd 100644 --- a/common/cros_ec.c +++ b/common/cros_ec.c @@ -13,8 +13,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - struct cros_ec_dev *board_get_cros_ec_dev(void) { struct udevice *dev; diff --git a/common/lynxkdi.c b/common/lynxkdi.c index f2b95ac8d3..1c8e122c32 100644 --- a/common/lynxkdi.c +++ b/common/lynxkdi.c @@ -20,6 +20,4 @@ #include -DECLARE_GLOBAL_DATA_PTR; - #error "Lynx KDI support not implemented for configured CPU" diff --git a/common/main.c b/common/main.c index 6a1159879e..66a03a156e 100644 --- a/common/main.c +++ b/common/main.c @@ -13,8 +13,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - /* * Board-specific Platform code can reimplement show_boot_progress () if needed */ diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 4aa0b2caf3..e780b82fd2 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -16,8 +16,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, ulong sector, struct image_header *header) { diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index 50d02478d5..33f3b74a97 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -13,8 +13,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - #if defined(CONFIG_SPL_ETH_SUPPORT) || defined(CONFIG_SPL_USB_ETHER) static ulong spl_net_load_read(struct spl_load_info *load, ulong sector, ulong count, void *buf) diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index bac11f64f1..357f8e5bd9 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -18,8 +18,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - static int spl_sata_load_image(struct spl_image_info *spl_image, struct spl_boot_device *bootdev) { diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 0c4603a3db..69390edcba 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -11,8 +11,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - static int spl_sdp_load_image(struct spl_image_info *spl_image, struct spl_boot_device *bootdev) { diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c index 567a450505..5aac10bd57 100644 --- a/common/spl/spl_usb.c +++ b/common/spl/spl_usb.c @@ -16,8 +16,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - #ifdef CONFIG_USB_STORAGE static int usb_stor_curr_dev = -1; /* current device */ #endif diff --git a/common/usb_hub.c b/common/usb_hub.c index b46dfa16cc..0729a20df4 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -37,8 +37,6 @@ #endif #include -DECLARE_GLOBAL_DATA_PTR; - #include #define USB_BUFSIZ 512 -- cgit v1.2.3