diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2012-06-05 06:29:35 +0200 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-06-11 19:53:29 +0200 |
commit | 6a5278d0715c5dfd42151bb6d7444db3f2ceed52 (patch) | |
tree | c6d19d9e65ebbb01d7c1745490444f3c95470783 /arch/arm/mach-tegra/cpu-tegra.c | |
parent | Linux 3.5-rc2 (diff) | |
download | linux-6a5278d0715c5dfd42151bb6d7444db3f2ceed52.tar.xz linux-6a5278d0715c5dfd42151bb6d7444db3f2ceed52.zip |
ARM: tegra: add clk_prepare/clk_unprepare
Use clk_prepare/clk_unprepare as required by the generic clk framework.
Tested on Ventana and Cardhu.
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra.c')
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.c b/arch/arm/mach-tegra/cpu-tegra.c index 7a065f0cf633..ceb52db1e2f1 100644 --- a/arch/arm/mach-tegra/cpu-tegra.c +++ b/arch/arm/mach-tegra/cpu-tegra.c @@ -189,8 +189,8 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) return PTR_ERR(emc_clk); } - clk_enable(emc_clk); - clk_enable(cpu_clk); + clk_prepare_enable(emc_clk); + clk_prepare_enable(cpu_clk); cpufreq_frequency_table_cpuinfo(policy, freq_table); cpufreq_frequency_table_get_attr(freq_table, policy->cpu); @@ -212,7 +212,7 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) static int tegra_cpu_exit(struct cpufreq_policy *policy) { cpufreq_frequency_table_cpuinfo(policy, freq_table); - clk_disable(emc_clk); + clk_disable_unprepare(emc_clk); clk_put(emc_clk); clk_put(cpu_clk); return 0; |