ARM: tegra: powergate: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:20:18 +0000 (10:20 +0300)]
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: I9980287785eae070d5f75d4f025a202d2867deba
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146792
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R87aafa360373a37676edd70d38059aefd2f01abd

arch/arm/mach-tegra/powergate.c

index 6e34561..c357902 100644 (file)
@@ -877,7 +877,7 @@ static int partition_clk_enable(int id)
                        break;
 
                if (clk_info->clk_type != RST_ONLY) {
-                       ret = clk_prepare_enable(clk);
+                       ret = tegra_clk_prepare_enable(clk);
                        if (ret)
                                goto err_clk_en;
                }
@@ -890,7 +890,7 @@ err_clk_en:
        while (idx--) {
                clk_info = &powergate_partition_info[id].clk_info[idx];
                if (clk_info->clk_type != RST_ONLY)
-                       clk_disable_unprepare(clk_info->clk_ptr);
+                       tegra_clk_disable_unprepare(clk_info->clk_ptr);
        }
 
        return ret;
@@ -947,7 +947,7 @@ static void partition_clk_disable(int id)
                        break;
 
                if (clk_info->clk_type != RST_ONLY)
-                       clk_disable_unprepare(clk);
+                       tegra_clk_disable_unprepare(clk);
        }
 }