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 --- board/samsung/espresso7420/espresso7420.c | 2 -- board/samsung/origen/origen.c | 2 -- board/samsung/trats/trats.c | 2 -- board/samsung/trats2/trats2.c | 2 -- 4 files changed, 8 deletions(-) (limited to 'board/samsung') diff --git a/board/samsung/espresso7420/espresso7420.c b/board/samsung/espresso7420/espresso7420.c index 04a83bc07d..1ed8680010 100644 --- a/board/samsung/espresso7420/espresso7420.c +++ b/board/samsung/espresso7420/espresso7420.c @@ -8,8 +8,6 @@ #include -DECLARE_GLOBAL_DATA_PTR; - int exynos_init(void) { return 0; diff --git a/board/samsung/origen/origen.c b/board/samsung/origen/origen.c index 99a2facd1e..3d27a9433b 100644 --- a/board/samsung/origen/origen.c +++ b/board/samsung/origen/origen.c @@ -13,8 +13,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - u32 get_board_rev(void) { return 0; diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c index f0913383b9..781b579967 100644 --- a/board/samsung/trats/trats.c +++ b/board/samsung/trats/trats.c @@ -30,8 +30,6 @@ #include "setup.h" -DECLARE_GLOBAL_DATA_PTR; - unsigned int board_rev; #ifdef CONFIG_REVISION_TAG diff --git a/board/samsung/trats2/trats2.c b/board/samsung/trats2/trats2.c index f9acbd3571..6abafeb1b3 100644 --- a/board/samsung/trats2/trats2.c +++ b/board/samsung/trats2/trats2.c @@ -24,8 +24,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - static unsigned int board_rev = -1; static inline u32 get_model_rev(void); -- cgit v1.2.3