summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/pm-t3.c
diff options
context:
space:
mode:
authorSivaram Nair <sivaramn@nvidia.com>2012-11-01 11:10:24 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:41:55 -0700
commite097360aab18ce2e96993c4ef1d9dd2b4835dfdb (patch)
treeb40e3982722c2c6146a8449ada3eccbb4a11aeaa /arch/arm/mach-tegra/pm-t3.c
parent7be0603211cafa5b3d57bbed1440c84c21955c40 (diff)
ARM: tegra: pm: moving to clk prepapre APIs
The clk_enable/clk_disable pair of APIs are replaced with tegra_clk_prepare_enable and tegra_clk_disable_unprepare. This is needed for the migration to common clk framework. Bug 920915 Change-Id: Ie5e86f391ef5157d35e02109770db38ad96950af Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/162321 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pm-t3.c')
-rw-r--r--arch/arm/mach-tegra/pm-t3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/pm-t3.c b/arch/arm/mach-tegra/pm-t3.c
index 6d2e9a261661..7222b763bb61 100644
--- a/arch/arm/mach-tegra/pm-t3.c
+++ b/arch/arm/mach-tegra/pm-t3.c
@@ -514,7 +514,7 @@ void tegra_lp0_cpu_mode(bool enter)
if (entered_on_g) {
if (enter)
- clk_enable(cclk_lp);
+ tegra_clk_prepare_enable(cclk_lp);
flags = enter ? TEGRA_POWER_CLUSTER_LP : TEGRA_POWER_CLUSTER_G;
flags |= TEGRA_POWER_CLUSTER_IMMEDIATE;
@@ -523,7 +523,7 @@ void tegra_lp0_cpu_mode(bool enter)
#endif
if (!tegra_cluster_control(0, flags)) {
if (!enter)
- clk_disable(cclk_lp);
+ tegra_clk_disable_unprepare(cclk_lp);
pr_info("Tegra: switched to %s cluster\n",
enter ? "LP" : "G");
}