diff options
author | Matthias Reichl <hias@horus.com> | 2019-01-15 17:51:07 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-15 18:57:17 +0000 |
commit | 2833548ecbb385a289124077ab4d812258a867d5 (patch) | |
tree | 2fb76f3eb49e782edd66d2eb3e4f02ba99aba6e0 /ipc | |
parent | 5a7b2aabc1aa0393f067d9325ada96fdf67f8cb7 (diff) | |
download | linux-2833548ecbb385a289124077ab4d812258a867d5.tar.bz2 |
ASoC: core: Don't defer probe on optional, NULL components
cpu and platform are optional components in DAI links. For example
codec-codec links usually have no platform set.
Call snd_soc_find_component only if the name or of_node of
a cpu or platform is set. Otherwise it will return NULL and
soc_init_dai_link bails out immediately with -EPROBE_DEFER,
meaning registering a card with NULL cpu or platform in DAI links
can never succeed.
Fixes: 8780cf1142a5 ("ASoC: soc-core: defer card probe until all component is added to list")
Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions