diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-05-24 08:12:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-24 10:51:25 +0200 |
commit | cf9d5c6619fadfc41cf8f5154cb990cc38e3da85 (patch) | |
tree | 0274d1f11aad9150326c30a4dabcebc85c1cdc26 /sound/soc/sh | |
parent | ASoC: dt-bindings: renesas: rsnd: tidyup properties (diff) | |
download | linux-cf9d5c6619fadfc41cf8f5154cb990cc38e3da85.tar.xz linux-cf9d5c6619fadfc41cf8f5154cb990cc38e3da85.zip |
ASoC: rsnd: tidyup loop on rsnd_adg_clk_query()
commit 06e8f5c842f2d ("ASoC: rsnd: don't call clk_get_rate() under
atomic context") used saved clk_rate, thus for_each_rsnd_clk()
is no longer needed. This patch fixes it.
Fixes: 06e8f5c842f2d ("ASoC: rsnd: don't call clk_get_rate() under atomic context")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87v978oe2u.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/rcar/adg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 0b8ae3eee148..93751099465d 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -290,7 +290,6 @@ static void rsnd_adg_set_ssi_clk(struct rsnd_mod *ssi_mod, u32 val) int rsnd_adg_clk_query(struct rsnd_priv *priv, unsigned int rate) { struct rsnd_adg *adg = rsnd_priv_to_adg(priv); - struct clk *clk; int i; int sel_table[] = { [CLKA] = 0x1, @@ -303,10 +302,9 @@ int rsnd_adg_clk_query(struct rsnd_priv *priv, unsigned int rate) * find suitable clock from * AUDIO_CLKA/AUDIO_CLKB/AUDIO_CLKC/AUDIO_CLKI. */ - for_each_rsnd_clk(clk, adg, i) { + for (i = 0; i < CLKMAX; i++) if (rate == adg->clk_rate[i]) return sel_table[i]; - } /* * find divided clock from BRGA/BRGB |