linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: rsnd: fix src clock prepare/unprepare
@ 2014-03-28 15:03 Ben Dooks
  2014-03-29 10:10 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Dooks @ 2014-03-28 15:03 UTC (permalink / raw)
  To: alsa-devel
  Cc: kuninori.morimoto.gx, broonie, lgirdwood, linux-sh, magnus.damm,
	linux-kernel, Ben Dooks

As with the previous commit, before a clock can be used it must be prepared
for use. Change from clk_enable() and clk_disable() to the versions of the
calls which also prepare and un-prepare the clocks.

Will fix warnings from the clock code when this is used.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 sound/soc/sh/rcar/scu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c
index 9153a11..3b1d1d2 100644
--- a/sound/soc/sh/rcar/scu.c
+++ b/sound/soc/sh/rcar/scu.c
@@ -284,7 +284,7 @@ static int rsnd_scu_start(struct rsnd_mod *mod,
 		return 0;
 	}
 
-	clk_enable(scu->clk);
+	clk_prepare_enable(scu->clk);
 
 	/* it use DMA transter */
 
@@ -317,7 +317,7 @@ static int rsnd_scu_stop(struct rsnd_mod *mod,
 
 	rsnd_scu_transfer_stop(priv, mod, rdai, io);
 
-	clk_disable(scu->clk);
+	clk_disable_unprepare(scu->clk);
 
 	return 0;
 }
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-31 10:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28 15:03 [PATCH] ASoC: rsnd: fix src clock prepare/unprepare Ben Dooks
2014-03-29 10:10 ` Mark Brown
2014-03-30 13:36   ` Ben Dooks
2014-03-30 22:24     ` Mark Brown
2014-03-31 10:05       ` Ben Dooks
2014-03-31 10:18         ` Mark Brown
2014-03-31 10:30           ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).