Message ID | 87o92trskm.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b9f2e25c599bbbf0646957e07ebb72b942c286cc |
Headers | show |
Series | ASoC: soc-core: tidyup with soc_find_component() | expand |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 1749f4a..358f1fb 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -813,9 +813,8 @@ struct snd_soc_dai *snd_soc_find_dai( lockdep_assert_held(&client_mutex); /* Find CPU DAI from registered DAIs */ - for_each_component(component) { - if (!snd_soc_is_matching_component(dlc, component)) - continue; + component = soc_find_component(dlc); + if (component) { for_each_component_dais(component, dai) { if (dlc->dai_name && strcmp(dai->name, dlc->dai_name) && (!dai->driver->name