OSDN Git Service

ASoC: core: Allow soc_find_component lookups to match parent of_node
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 25 Jan 2019 16:04:06 +0000 (16:04 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 25 Jan 2019 17:56:05 +0000 (17:56 +0000)
commitd0b95e6cd298a785c126e75a085af6dd7b7b1f60
treeb73f6a3b3e2e457c7f98b7762f9d292775bb39a0
parent8077ec011b1ea26abb7ca786f28ecccfb352717f
ASoC: core: Allow soc_find_component lookups to match parent of_node

For devices implemented as a MFD it is common to only have a single node
in devicetree representing the whole device. As such when looking up
components in soc_find_components we should match against both the devices
of_node and the devices parent's of_node, as is already done in the rest
of the ASoC core.

This causes regressions for some DAI links at the moment as
soc_find_component was recently added as a check in soc_init_dai_link.

Fixes: 8780cf1142a5 ("ASoC: soc-core: defer card probe until all component is added to list")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c