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/clock2420_data.c | |
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/clock2420_data.c')
-rw-r--r-- | arch/arm/mach-omap2/clock2420_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clock2420_data.c b/arch/arm/mach-omap2/clock2420_data.c index da1e388f22f7..d1034858b87a 100644 --- a/arch/arm/mach-omap2/clock2420_data.c +++ b/arch/arm/mach-omap2/clock2420_data.c | |||
@@ -124,6 +124,7 @@ static struct clk dpll_ck = { | |||
124 | .name = "dpll_ck", | 124 | .name = "dpll_ck", |
125 | .ops = &clkops_omap2xxx_dpll_ops, | 125 | .ops = &clkops_omap2xxx_dpll_ops, |
126 | .parent = &sys_ck, /* Can be func_32k also */ | 126 | .parent = &sys_ck, /* Can be func_32k also */ |
127 | .init = &omap2xxx_clkt_dpllcore_init, | ||
127 | .dpll_data = &dpll_dd, | 128 | .dpll_data = &dpll_dd, |
128 | .clkdm_name = "wkup_clkdm", | 129 | .clkdm_name = "wkup_clkdm", |
129 | .recalc = &omap2_dpllcore_recalc, | 130 | .recalc = &omap2_dpllcore_recalc, |
@@ -1953,7 +1954,7 @@ int __init omap2420_clk_init(void) | |||
1953 | omap_clk_disable_autoidle_all(); | 1954 | omap_clk_disable_autoidle_all(); |
1954 | 1955 | ||
1955 | /* Check the MPU rate set by bootloader */ | 1956 | /* Check the MPU rate set by bootloader */ |
1956 | clkrate = omap2xxx_clk_get_core_rate(&dpll_ck); | 1957 | clkrate = omap2xxx_clk_get_core_rate(); |
1957 | for (prcm = rate_table; prcm->mpu_speed; prcm++) { | 1958 | for (prcm = rate_table; prcm->mpu_speed; prcm++) { |
1958 | if (!(prcm->flags & cpu_mask)) | 1959 | if (!(prcm->flags & cpu_mask)) |
1959 | continue; | 1960 | continue; |
@@ -1979,7 +1980,6 @@ int __init omap2420_clk_init(void) | |||
1979 | /* Avoid sleeping sleeping during omap2_clk_prepare_for_reboot() */ | 1980 | /* Avoid sleeping sleeping during omap2_clk_prepare_for_reboot() */ |
1980 | vclk = clk_get(NULL, "virt_prcm_set"); | 1981 | vclk = clk_get(NULL, "virt_prcm_set"); |
1981 | sclk = clk_get(NULL, "sys_ck"); | 1982 | sclk = clk_get(NULL, "sys_ck"); |
1982 | dclk = clk_get(NULL, "dpll_ck"); | ||
1983 | 1983 | ||
1984 | return 0; | 1984 | return 0; |
1985 | } | 1985 | } |