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>
(cherry picked from commit
79861bbb759053a9b91026becc0915d0f1f8d37d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
{
struct rsnd_src *src = rsnd_mod_to_src(mod);
{
struct rsnd_src *src = rsnd_mod_to_src(mod);
+ clk_prepare_enable(src->clk);
{
struct rsnd_src *src = rsnd_mod_to_src(mod);
{
struct rsnd_src *src = rsnd_mod_to_src(mod);
+ clk_disable_unprepare(src->clk);
u32 cr;
if (0 == ssi->usrcnt) {
u32 cr;
if (0 == ssi->usrcnt) {
+ clk_prepare_enable(ssi->clk);
if (rsnd_dai_is_clk_master(rdai)) {
if (rsnd_ssi_clk_from_parent(ssi))
if (rsnd_dai_is_clk_master(rdai)) {
if (rsnd_ssi_clk_from_parent(ssi))
rsnd_ssi_master_clk_stop(ssi);
}
rsnd_ssi_master_clk_stop(ssi);
}
+ clk_disable_unprepare(ssi->clk);
}
dev_dbg(dev, "ssi%d hw stopped\n", rsnd_mod_id(&ssi->mod));
}
dev_dbg(dev, "ssi%d hw stopped\n", rsnd_mod_id(&ssi->mod));