diff options
author | Mark Brown <broonie@kernel.org> | 2016-12-12 10:52:43 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-12 10:52:43 -0500 |
commit | 3f1b86139e94289289b00f745cc483b1fef5fd46 (patch) | |
tree | 884013efb30895984e9b37749851de3b2b796b0d | |
parent | 66f89906f07e102aece00b80d99f6e1039529bc6 (diff) | |
parent | 06859fca4368c407d4acccf3948b8b825db5e569 (diff) |
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
-rw-r--r-- | sound/soc/soc-core.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index f35ec5bf3b78..7c3bf160a1a1 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -993,6 +993,7 @@ static int soc_bind_dai_link(struct snd_soc_card *card, | |||
993 | struct snd_soc_dai_link_component cpu_dai_component; | 993 | struct snd_soc_dai_link_component cpu_dai_component; |
994 | struct snd_soc_dai **codec_dais; | 994 | struct snd_soc_dai **codec_dais; |
995 | struct snd_soc_platform *platform; | 995 | struct snd_soc_platform *platform; |
996 | struct device_node *platform_of_node; | ||
996 | const char *platform_name; | 997 | const char *platform_name; |
997 | int i; | 998 | int i; |
998 | 999 | ||
@@ -1042,9 +1043,12 @@ static int soc_bind_dai_link(struct snd_soc_card *card, | |||
1042 | 1043 | ||
1043 | /* find one from the set of registered platforms */ | 1044 | /* find one from the set of registered platforms */ |
1044 | list_for_each_entry(platform, &platform_list, list) { | 1045 | list_for_each_entry(platform, &platform_list, list) { |
1046 | platform_of_node = platform->dev->of_node; | ||
1047 | if (!platform_of_node && platform->dev->parent->of_node) | ||
1048 | platform_of_node = platform->dev->parent->of_node; | ||
1049 | |||
1045 | if (dai_link->platform_of_node) { | 1050 | if (dai_link->platform_of_node) { |
1046 | if (platform->dev->of_node != | 1051 | if (platform_of_node != dai_link->platform_of_node) |
1047 | dai_link->platform_of_node) | ||
1048 | continue; | 1052 | continue; |
1049 | } else { | 1053 | } else { |
1050 | if (strcmp(platform->component.name, platform_name)) | 1054 | if (strcmp(platform->component.name, platform_name)) |