ARM: tegra: pm: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:09:37 +0000 (10:09 +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: I24af62c507f40a8393024eda3d853fe7ed29f203
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146791
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R85fb9a4435863c5f8fbbbc892257ca43f1c480b4

arch/arm/mach-tegra/pm.c

index 3f5875f..9232a16 100644 (file)
@@ -1380,13 +1380,13 @@ EXPORT_SYMBOL(debug_uart_clk);
 void tegra_console_uart_suspend(void)
 {
        if (console_suspend_enabled && debug_uart_clk)
-               clk_disable(debug_uart_clk);
+               tegra_clk_disable_unprepare(debug_uart_clk);
 }
 
 void tegra_console_uart_resume(void)
 {
        if (console_suspend_enabled && debug_uart_clk)
-               clk_enable(debug_uart_clk);
+               tegra_clk_prepare_enable(debug_uart_clk);
 }
 
 static int tegra_debug_uart_syscore_init(void)