aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-12-07 17:30:13 -0500
committerTony Lindgren <tony@atomide.com>2015-01-07 12:53:51 -0500
commitcecec93df8be3a2ad49b3fb519fa37dba357843e (patch)
tree33be5d5219b0c78f844673170b0796f1c3936864
parent40fd5106948004092a61a24fb1ceadd17f6cd74a (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.h1
-rw-r--r--arch/arm/mach-omap2/dpll44xx.c20
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 {
177u32 omap3_dpll_autoidle_read(struct clk_hw_omap *clk); 177u32 omap3_dpll_autoidle_read(struct clk_hw_omap *clk);
178void omap3_dpll_allow_idle(struct clk_hw_omap *clk); 178void omap3_dpll_allow_idle(struct clk_hw_omap *clk);
179void omap3_dpll_deny_idle(struct clk_hw_omap *clk); 179void omap3_dpll_deny_idle(struct clk_hw_omap *clk);
180int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk);
181void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk); 180void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk);
182void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk); 181void 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 */
40int 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
59void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) 39void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk)
60{ 40{
61 u32 v; 41 u32 v;