diff options
author | Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> | 2014-12-07 17:30:13 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-01-07 12:53:51 -0500 |
commit | cecec93df8be3a2ad49b3fb519fa37dba357843e (patch) | |
tree | 33be5d5219b0c78f844673170b0796f1c3936864 | |
parent | 40fd5106948004092a61a24fb1ceadd17f6cd74a (diff) |
ARM: OMAP2+: dpll44xx.c: Remove unused function
Remove the function omap4_dpllmx_gatectrl_read() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/clock.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/dpll44xx.c | 20 |
2 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index a4282e79143e..1cf9dd85248a 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -177,7 +177,6 @@ struct clksel { | |||
177 | u32 omap3_dpll_autoidle_read(struct clk_hw_omap *clk); | 177 | u32 omap3_dpll_autoidle_read(struct clk_hw_omap *clk); |
178 | void omap3_dpll_allow_idle(struct clk_hw_omap *clk); | 178 | void omap3_dpll_allow_idle(struct clk_hw_omap *clk); |
179 | void omap3_dpll_deny_idle(struct clk_hw_omap *clk); | 179 | void omap3_dpll_deny_idle(struct clk_hw_omap *clk); |
180 | int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk); | ||
181 | void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk); | 180 | void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk); |
182 | void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk); | 181 | void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk); |
183 | 182 | ||
diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c index 0e58e5a85d53..fc712240e5fd 100644 --- a/arch/arm/mach-omap2/dpll44xx.c +++ b/arch/arm/mach-omap2/dpll44xx.c | |||
@@ -36,26 +36,6 @@ | |||
36 | /* Static rate multiplier for OMAP4 REGM4XEN clocks */ | 36 | /* Static rate multiplier for OMAP4 REGM4XEN clocks */ |
37 | #define OMAP4430_REGM4XEN_MULT 4 | 37 | #define OMAP4430_REGM4XEN_MULT 4 |
38 | 38 | ||
39 | /* Supported only on OMAP4 */ | ||
40 | int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk) | ||
41 | { | ||
42 | u32 v; | ||
43 | u32 mask; | ||
44 | |||
45 | if (!clk || !clk->clksel_reg) | ||
46 | return -EINVAL; | ||
47 | |||
48 | mask = clk->flags & CLOCK_CLKOUTX2 ? | ||
49 | OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK : | ||
50 | OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK; | ||
51 | |||
52 | v = omap2_clk_readl(clk, clk->clksel_reg); | ||
53 | v &= mask; | ||
54 | v >>= __ffs(mask); | ||
55 | |||
56 | return v; | ||
57 | } | ||
58 | |||
59 | void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) | 39 | void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) |
60 | { | 40 | { |
61 | u32 v; | 41 | u32 v; |