ARM: tegra: board: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:01:59 +0000 (10:01 +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 ID: 920915

Change-Id: Ic349da403128335ffd57801e86fcb7ad9724fc29
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146784
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

arch/arm/mach-tegra/board-common.c

index b44c9f2..6da3af3 100644 (file)
@@ -124,7 +124,7 @@ int uart_console_debug_init(int default_debug_port)
                else
                        clk_set_parent(debug_uart_clk, c);
 
-               clk_enable(debug_uart_clk);
+               tegra_clk_prepare_enable(debug_uart_clk);
                clk_set_rate(debug_uart_clk, clk_get_rate(c));
        } else {
                pr_err("Not getting the clock for debug consolei %d\n",