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 /arch/arm/mach-rockchip | |
parent | f1b1f77060beadbfe9f42a3be00019bd025afbd6 (diff) | |
download | u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.gz |
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 'arch/arm/mach-rockchip')
-rw-r--r-- | arch/arm/mach-rockchip/rk3036-board-spl.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/rk3188-board.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/rk322x-board-spl.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/rk3288-board-tpl.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/rk3368-board-spl.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/rk3368-board-tpl.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/rk3399-board-spl.c | 2 |
7 files changed, 0 insertions, 14 deletions
diff --git a/arch/arm/mach-rockchip/rk3036-board-spl.c b/arch/arm/mach-rockchip/rk3036-board-spl.c index 550e3a1521..4501cd17e3 100644 --- a/arch/arm/mach-rockchip/rk3036-board-spl.c +++ b/arch/arm/mach-rockchip/rk3036-board-spl.c @@ -14,8 +14,6 @@ #include <asm/arch/timer.h> #include <asm/arch/uart.h> -DECLARE_GLOBAL_DATA_PTR; - #define GRF_BASE 0x20008000 #define DEBUG_UART_BASE 0x20068000 diff --git a/arch/arm/mach-rockchip/rk3188-board.c b/arch/arm/mach-rockchip/rk3188-board.c index 916d18fc32..9005705db1 100644 --- a/arch/arm/mach-rockchip/rk3188-board.c +++ b/arch/arm/mach-rockchip/rk3188-board.c @@ -18,8 +18,6 @@ #include <asm/gpio.h> #include <dm/pinctrl.h> -DECLARE_GLOBAL_DATA_PTR; - int board_late_init(void) { struct rk3188_grf *grf; diff --git a/arch/arm/mach-rockchip/rk322x-board-spl.c b/arch/arm/mach-rockchip/rk322x-board-spl.c index d3d0446574..4d8e8bdeb2 100644 --- a/arch/arm/mach-rockchip/rk322x-board-spl.c +++ b/arch/arm/mach-rockchip/rk322x-board-spl.c @@ -21,8 +21,6 @@ u32 spl_boot_device(void) { return BOOT_DEVICE_MMC1; } -DECLARE_GLOBAL_DATA_PTR; - #define GRF_BASE 0x11000000 #define SGRF_BASE 0x10140000 diff --git a/arch/arm/mach-rockchip/rk3288-board-tpl.c b/arch/arm/mach-rockchip/rk3288-board-tpl.c index 150beea02e..6f7097dbdb 100644 --- a/arch/arm/mach-rockchip/rk3288-board-tpl.c +++ b/arch/arm/mach-rockchip/rk3288-board-tpl.c @@ -19,8 +19,6 @@ #include <asm/arch/sys_proto.h> #include <asm/arch/timer.h> -DECLARE_GLOBAL_DATA_PTR; - #define GRF_BASE 0xff770000 void board_init_f(ulong dummy) { diff --git a/arch/arm/mach-rockchip/rk3368-board-spl.c b/arch/arm/mach-rockchip/rk3368-board-spl.c index 8055ae538f..a1d504bbd2 100644 --- a/arch/arm/mach-rockchip/rk3368-board-spl.c +++ b/arch/arm/mach-rockchip/rk3368-board-spl.c @@ -17,8 +17,6 @@ #include <asm/arch/periph.h> #include <asm/arch/timer.h> -DECLARE_GLOBAL_DATA_PTR; - void board_debug_uart_init(void) { } diff --git a/arch/arm/mach-rockchip/rk3368-board-tpl.c b/arch/arm/mach-rockchip/rk3368-board-tpl.c index 60d5aeade9..f5bc0d4cd5 100644 --- a/arch/arm/mach-rockchip/rk3368-board-tpl.c +++ b/arch/arm/mach-rockchip/rk3368-board-tpl.c @@ -18,8 +18,6 @@ #include <asm/arch/timer.h> #include <syscon.h> -DECLARE_GLOBAL_DATA_PTR; - /* * The SPL (and also the full U-Boot stage on the RK3368) will run in * secure mode (i.e. EL3) and an ATF will eventually be booted before diff --git a/arch/arm/mach-rockchip/rk3399-board-spl.c b/arch/arm/mach-rockchip/rk3399-board-spl.c index d35990efd6..4eb7f01c15 100644 --- a/arch/arm/mach-rockchip/rk3399-board-spl.c +++ b/arch/arm/mach-rockchip/rk3399-board-spl.c @@ -19,8 +19,6 @@ #include <spl.h> #include <syscon.h> -DECLARE_GLOBAL_DATA_PTR; - void board_return_to_bootrom(void) { back_to_bootrom(BROM_BOOT_NEXTSTAGE); |