ASoC: core: If a platform doesn't have an of_node use parent's node
commit06859fca4368c407d4acccf3948b8b825db5e569
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 7 Nov 2016 13:03:17 +0000 (7 13:03 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 9 Nov 2016 14:01:54 +0000 (9 14:01 +0000)
tree001a81c27d3db9015001816826f595dca3528214
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: core: If a platform doesn't have an of_node use parent's node

Support was added to allow location of both CPU and CODEC components
of a DAI link from their parent's of_node if they did not have an
of_node themselves in this commit:

commit 3e0aa8d83bf8 ("ASoC: core: If component doesn't have of_node
                      use parent's node instead")

However this leaves platforms as something of a special case as the
major DAI component that doesn't do this. Since this is useful for MFD
devices which often utilise a single device tree entry for the whole
device, add support for looking up platforms from the parent's of_node
as well.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c