From: Shawn Guo Date: Tue, 20 Dec 2011 06:15:44 +0000 (+0800) Subject: ASoC: mxs-saif: convert to clk_prepare/clk_unprepare X-Git-Tag: firefly_0821_release~3680^2~3787^2^2^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=67939b22dadd6c5cbf7a4abe9eaec3a8415569a7;p=firefly-linux-kernel-4.4.55.git ASoC: mxs-saif: convert to clk_prepare/clk_unprepare The patch converts mxs-saif driver to clk_prepare/clk_unprepare by using helper functions clk_prepare_enable/clk_disable_unprepare. Signed-off-by: Shawn Guo Cc: Dong Aisheng Cc: Liam Girdwood Acked-by: Mark Brown Acked-by: Marek Vasut --- diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index 76dc74d24fc2..ef1abb53af95 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c @@ -210,7 +210,7 @@ int mxs_saif_put_mclk(unsigned int saif_id) return -EBUSY; } - clk_disable(saif->clk); + clk_disable_unprepare(saif->clk); /* disable MCLK output */ __raw_writel(BM_SAIF_CTRL_CLKGATE, @@ -264,7 +264,7 @@ int mxs_saif_get_mclk(unsigned int saif_id, unsigned int mclk, if (ret) return ret; - ret = clk_enable(saif->clk); + ret = clk_prepare_enable(saif->clk); if (ret) return ret;