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-imx | |
parent | f1b1f77060beadbfe9f42a3be00019bd025afbd6 (diff) | |
download | u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.zip u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.gz u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.bz2 |
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-imx')
-rw-r--r-- | arch/arm/mach-imx/cmd_dek.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mx7ulp/pcc.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mx7ulp/scg.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mx8m/clock.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mx8m/clock_slice.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/timer.c | 2 |
6 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-imx/cmd_dek.c b/arch/arm/mach-imx/cmd_dek.c index ada8adf..62cd56e 100644 --- a/arch/arm/mach-imx/cmd_dek.c +++ b/arch/arm/mach-imx/cmd_dek.c @@ -16,8 +16,6 @@ #include <asm/arch/clock.h> #include <mapmem.h> -DECLARE_GLOBAL_DATA_PTR; - /** * blob_dek() - Encapsulate the DEK as a blob using CAM's Key * @src: - Address of data to be encapsulated diff --git a/arch/arm/mach-imx/mx7ulp/pcc.c b/arch/arm/mach-imx/mx7ulp/pcc.c index edd84e5..1d39c5b 100644 --- a/arch/arm/mach-imx/mx7ulp/pcc.c +++ b/arch/arm/mach-imx/mx7ulp/pcc.c @@ -12,8 +12,6 @@ #include <asm/arch/pcc.h> #include <asm/arch/sys_proto.h> -DECLARE_GLOBAL_DATA_PTR; - #define PCC_CLKSRC_TYPES 2 #define PCC_CLKSRC_NUM 7 diff --git a/arch/arm/mach-imx/mx7ulp/scg.c b/arch/arm/mach-imx/mx7ulp/scg.c index c117af0..341f8cc 100644 --- a/arch/arm/mach-imx/mx7ulp/scg.c +++ b/arch/arm/mach-imx/mx7ulp/scg.c @@ -12,8 +12,6 @@ #include <asm/arch/pcc.h> #include <asm/arch/sys_proto.h> -DECLARE_GLOBAL_DATA_PTR; - scg_p scg1_regs = (scg_p)SCG1_RBASE; static u32 scg_src_get_rate(enum scg_clk clksrc) diff --git a/arch/arm/mach-imx/mx8m/clock.c b/arch/arm/mach-imx/mx8m/clock.c index c56ba99..0481117 100644 --- a/arch/arm/mach-imx/mx8m/clock.c +++ b/arch/arm/mach-imx/mx8m/clock.c @@ -14,8 +14,6 @@ #include <errno.h> #include <linux/iopoll.h> -DECLARE_GLOBAL_DATA_PTR; - static struct anamix_pll *ana_pll = (struct anamix_pll *)ANATOP_BASE_ADDR; static u32 decode_frac_pll(enum clk_root_src frac_pll) diff --git a/arch/arm/mach-imx/mx8m/clock_slice.c b/arch/arm/mach-imx/mx8m/clock_slice.c index e734498..b851d59 100644 --- a/arch/arm/mach-imx/mx8m/clock_slice.c +++ b/arch/arm/mach-imx/mx8m/clock_slice.c @@ -12,8 +12,6 @@ #include <asm/io.h> #include <errno.h> -DECLARE_GLOBAL_DATA_PTR; - static struct ccm_reg *ccm_reg = (struct ccm_reg *)CCM_BASE_ADDR; static struct clk_root_map root_array[] = { diff --git a/arch/arm/mach-imx/timer.c b/arch/arm/mach-imx/timer.c index 69dbf3c..60f706f 100644 --- a/arch/arm/mach-imx/timer.c +++ b/arch/arm/mach-imx/timer.c @@ -38,8 +38,6 @@ static struct mxc_gpt *cur_gpt = (struct mxc_gpt *)GPT1_BASE_ADDR; #define GPTPR_PRESCALER24M_SHIFT 12 #define GPTPR_PRESCALER24M_MASK (0xF << GPTPR_PRESCALER24M_SHIFT) -DECLARE_GLOBAL_DATA_PTR; - static inline int gpt_has_clk_source_osc(void) { #if defined(CONFIG_MX6) |