diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-10-29 22:55:53 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-11-08 14:33:08 -0500 |
commit | 5f03937700e3991a0de801ade8374628f2c982d5 (patch) | |
tree | 06679db2cd46c3063a058ce9540e78294538d53b /arch/arm/mach-omap2/clock2xxx.h | |
parent | d08cce6a1d6952a7774e4b61066d469c16d47a11 (diff) |
ARM: OMAP2xxx: clock: remove global 'dclk' variable
Remove the global 'dclk' variable, instead replacing it with a
variable local to the dpllcore clock type C file. This removes some
of the special-case code surrounding the OMAP2xxx clock init.
This patch is a prerequisite for the removal of the
omap_prcm_restart() code from arch/arm/mach-omap2/prcm.c. It also
cleans up some special-case OMAP2xxx clock code in the process.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Vaibhav Hiremath <hvaibhav@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx.h')
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.h b/arch/arm/mach-omap2/clock2xxx.h index cb6df8ca9e4a..19dc065901c7 100644 --- a/arch/arm/mach-omap2/clock2xxx.h +++ b/arch/arm/mach-omap2/clock2xxx.h | |||
@@ -15,10 +15,11 @@ unsigned long omap2xxx_sys_clk_recalc(struct clk *clk); | |||
15 | unsigned long omap2_osc_clk_recalc(struct clk *clk); | 15 | unsigned long omap2_osc_clk_recalc(struct clk *clk); |
16 | unsigned long omap2_dpllcore_recalc(struct clk *clk); | 16 | unsigned long omap2_dpllcore_recalc(struct clk *clk); |
17 | int omap2_reprogram_dpllcore(struct clk *clk, unsigned long rate); | 17 | int omap2_reprogram_dpllcore(struct clk *clk, unsigned long rate); |
18 | unsigned long omap2xxx_clk_get_core_rate(struct clk *clk); | 18 | unsigned long omap2xxx_clk_get_core_rate(void); |
19 | u32 omap2xxx_get_apll_clkin(void); | 19 | u32 omap2xxx_get_apll_clkin(void); |
20 | u32 omap2xxx_get_sysclkdiv(void); | 20 | u32 omap2xxx_get_sysclkdiv(void); |
21 | void omap2xxx_clk_prepare_for_reboot(void); | 21 | void omap2xxx_clk_prepare_for_reboot(void); |
22 | void omap2xxx_clkt_dpllcore_init(struct clk *clk); | ||
22 | 23 | ||
23 | #ifdef CONFIG_SOC_OMAP2420 | 24 | #ifdef CONFIG_SOC_OMAP2420 |
24 | int omap2420_clk_init(void); | 25 | int omap2420_clk_init(void); |
@@ -34,8 +35,6 @@ int omap2430_clk_init(void); | |||
34 | 35 | ||
35 | extern void __iomem *prcm_clksrc_ctrl, *cm_idlest_pll; | 36 | extern void __iomem *prcm_clksrc_ctrl, *cm_idlest_pll; |
36 | 37 | ||
37 | extern struct clk *dclk; | ||
38 | |||
39 | extern const struct clkops clkops_omap2430_i2chs_wait; | 38 | extern const struct clkops clkops_omap2430_i2chs_wait; |
40 | extern const struct clkops clkops_oscck; | 39 | extern const struct clkops clkops_oscck; |
41 | extern const struct clkops clkops_apll96; | 40 | extern const struct clkops clkops_apll96; |