diff options
| author | Kuninori Morimoto <[email protected]> | 2019-01-21 09:32:42 +0900 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-01-21 18:13:18 +0000 |
| commit | 53e947a0e1f770b9707febb7054b856878945d50 (patch) | |
| tree | 16c7e85335b168817fb829f96bd5e3467766a59b /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 65462e445f78cb2f9378443be7ba8b7e07300694 (diff) | |
ASoC: soc-core: merge card resources cleanup method
We need to cleanup card resources when snd_soc_instantiate_card() was
failed, or when snd_soc_unbind_card() was called.
But they are cleanuping card resources on each way.
Same code in many places makes code un-understandable.
This patch reuses soc_cleanup_card_resources() for cleanuping code
resource. Then, it makes avoiding cleanup order.
It will be called from snd_soc_instantiate_card() and
snd_soc_unbind_card().
Then, original soc_cleanup_card_resources() included
snd_soc_flush_all_delayed_work(), but it is now separated.
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions