Skip to content

Commit

Permalink
ASoC: samsung: s3c2412-i2s: Move to clk_prepare_enable/clk_disable_un…
Browse files Browse the repository at this point in the history
…prepare

Use clk_prepare_enable/clk_disable_unprepare to make the driver
work properly with common clock framework.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Vasily Khoruzhick authored and Mark Brown committed Jun 24, 2014
1 parent ae60245 commit 77ea6bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/samsung/s3c2412-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int s3c2412_i2s_probe(struct snd_soc_dai *dai)
/* Set MPLL as the source for IIS CLK */

clk_set_parent(s3c2412_i2s.iis_cclk, clk_get(NULL, "mpll"));
clk_enable(s3c2412_i2s.iis_cclk);
clk_prepare_enable(s3c2412_i2s.iis_cclk);

s3c2412_i2s.iis_cclk = s3c2412_i2s.iis_pclk;

Expand All @@ -89,7 +89,7 @@ static int s3c2412_i2s_probe(struct snd_soc_dai *dai)

static int s3c2412_i2s_remove(struct snd_soc_dai *dai)
{
clk_disable(s3c2412_i2s.iis_cclk);
clk_disable_unprepare(s3c2412_i2s.iis_cclk);

return 0;
}
Expand Down

0 comments on commit 77ea6bf

Please sign in to comment.