diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2014-04-10 18:16:33 -0700 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-11 12:13:52 +0100 |
commit | 79861bbb759053a9b91026becc0915d0f1f8d37d (patch) | |
tree | 97f8b60a4679272d21ae120704cce1e4a0da2750 /sound/soc/sh/rcar/src.c | |
parent | ab5d6fbdb71c183add7431243c7f615c42b643bb (diff) | |
download | talos-op-linux-79861bbb759053a9b91026becc0915d0f1f8d37d.tar.gz talos-op-linux-79861bbb759053a9b91026becc0915d0f1f8d37d.zip |
ASoC: rsnd: fix clock prepare/unprepare
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>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/sh/rcar/src.c')
-rw-r--r-- | sound/soc/sh/rcar/src.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 6232b7d307aa..4d0720ed5a90 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -258,7 +258,7 @@ static int rsnd_src_init(struct rsnd_mod *mod, { struct rsnd_src *src = rsnd_mod_to_src(mod); - clk_enable(src->clk); + clk_prepare_enable(src->clk); return 0; } @@ -269,7 +269,7 @@ static int rsnd_src_quit(struct rsnd_mod *mod, { struct rsnd_src *src = rsnd_mod_to_src(mod); - clk_disable(src->clk); + clk_disable_unprepare(src->clk); return 0; } |