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/timer/ag101p_timer.c | 2 -- drivers/timer/altera_timer.c | 2 -- drivers/timer/ast_timer.c | 2 -- drivers/timer/atcpit100_timer.c | 2 -- drivers/timer/omap-timer.c | 2 -- 5 files changed, 10 deletions(-) (limited to 'drivers/timer') diff --git a/drivers/timer/ag101p_timer.c b/drivers/timer/ag101p_timer.c index 8dc85c4183c..f9ff5c15b41 100644 --- a/drivers/timer/ag101p_timer.c +++ b/drivers/timer/ag101p_timer.c @@ -12,8 +12,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - /* * Timer Control Register */ diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c index 1ba85c43996..f80debb2d7f 100644 --- a/drivers/timer/altera_timer.c +++ b/drivers/timer/altera_timer.c @@ -14,8 +14,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - /* control register */ #define ALTERA_TIMER_CONT BIT(1) /* Continuous mode */ #define ALTERA_TIMER_START BIT(2) /* Start timer */ diff --git a/drivers/timer/ast_timer.c b/drivers/timer/ast_timer.c index e194c50f4a7..ab1e4af79fe 100644 --- a/drivers/timer/ast_timer.c +++ b/drivers/timer/ast_timer.c @@ -11,8 +11,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - #define AST_TICK_TIMER 1 #define AST_TMC_RELOAD_VAL 0xffffffff diff --git a/drivers/timer/atcpit100_timer.c b/drivers/timer/atcpit100_timer.c index 963f978d206..4322921b71b 100644 --- a/drivers/timer/atcpit100_timer.c +++ b/drivers/timer/atcpit100_timer.c @@ -12,8 +12,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - #define REG32_TMR(x) (*(u32 *) ((plat->regs) + (x>>2))) /* diff --git a/drivers/timer/omap-timer.c b/drivers/timer/omap-timer.c index 4cc61055057..051c69081e8 100644 --- a/drivers/timer/omap-timer.c +++ b/drivers/timer/omap-timer.c @@ -13,8 +13,6 @@ #include #include -DECLARE_GLOBAL_DATA_PTR; - /* Timer register bits */ #define TCLR_START BIT(0) /* Start=1 */ #define TCLR_AUTO_RELOAD BIT(1) /* Auto reload */ -- cgit v1.2.3