| From 2a58bd93bdc4b3f8fc7b4409ffe9a10022c74959 Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Wed, 19 Oct 2016 03:57:27 +0000 |
| Subject: [PATCH 064/299] ASoC: rsnd: use for_each_rsnd_mod_xxx() on |
| rsnd_rdai_continuance_probe() |
| |
| Now, we have for_each_rsnd_mod(), let's use it |
| |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| (cherry picked from commit 9b87bfb2e8e1bbd685489a84f4841250cab493ca) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| sound/soc/sh/rcar/core.c | 5 +++-- |
| 1 file changed, 3 insertions(+), 2 deletions(-) |
| |
| --- a/sound/soc/sh/rcar/core.c |
| +++ b/sound/soc/sh/rcar/core.c |
| @@ -1120,6 +1120,7 @@ static int rsnd_rdai_continuance_probe(s |
| ret = rsnd_dai_call(probe, io, priv); |
| if (ret == -EAGAIN) { |
| struct rsnd_mod *ssi_mod = rsnd_io_to_mod_ssi(io); |
| + struct rsnd_mod *mod; |
| int i; |
| |
| /* |
| @@ -1139,8 +1140,8 @@ static int rsnd_rdai_continuance_probe(s |
| * remove all mod from io |
| * and, re connect ssi |
| */ |
| - for (i = 0; i < RSND_MOD_MAX; i++) |
| - rsnd_dai_disconnect((io)->mod[i], io, i); |
| + for_each_rsnd_mod(i, mod, io) |
| + rsnd_dai_disconnect(mod, io, i); |
| rsnd_dai_connect(ssi_mod, io, RSND_MOD_SSI); |
| |
| /* |