]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/mach-imx/pm-imx5.c
ARM: pm-imx5: add clk_prepare/clk_unprepare
[karo-tx-linux.git] / arch / arm / mach-imx / pm-imx5.c
index 6dc0934480577363a2d49a4a5646d69d6cc62729..e26a9cb05ed811098e25244e58349b094ba0dc7b 100644 (file)
@@ -89,7 +89,7 @@ void mx5_cpu_lp_set(enum mxc_cpu_pwr_mode mode)
 
 static int mx5_suspend_prepare(void)
 {
-       return clk_enable(gpc_dvfs_clk);
+       return clk_prepare_enable(gpc_dvfs_clk);
 }
 
 static int mx5_suspend_enter(suspend_state_t state)
@@ -119,7 +119,7 @@ static int mx5_suspend_enter(suspend_state_t state)
 
 static void mx5_suspend_finish(void)
 {
-       clk_disable(gpc_dvfs_clk);
+       clk_disable_unprepare(gpc_dvfs_clk);
 }
 
 static int mx5_pm_valid(suspend_state_t state)