diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-11-13 10:16:48 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-15 12:02:39 +0000 |
commit | ce21401c9d30e81824e864dc25824ebeb9690801 (patch) | |
tree | b38f15a1d1c174f491863d74a4e87b6fd836e004 /sound/soc/soc-generic-dmaengine-pcm.c | |
parent | 2cc1afcfc617b33b72e409360ba5dd7c3fc2492d (diff) |
ASoC: soc-core: care card_probed at soc_cleanup_card_resources()
soc_cleanup_card_resources() will call card->remove(), but it should be
called if card->probe() or card->late_probe() are called.
snd_soc_bind_card() might be error before calling
card->probe() / card->late_probe().
In that time, card->remove() will be called.
This patch adds card_probed parameter to judge it.
Fixes: bfce78a559655 ("ASoC: soc-core: tidyup soc_init_dai_link()")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/87o8xg4ltr.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-generic-dmaengine-pcm.c')
0 files changed, 0 insertions, 0 deletions