ASoC: soc-pcm: don't call flush_delayed_work() many times in soc_pcm_private_free()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 24 Jan 2018 05:18:46 +0000 (05:18 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jan 2018 10:30:20 +0000 (10:30 +0000)
commitf30a4c313eb6d5027a85869d1ccf626208218ed0
treef3b1b36a660abe5da129fd1a115224e914692a1a
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
ASoC: soc-pcm: don't call flush_delayed_work() many times in soc_pcm_private_free()

commit f523acebbb74 ("ASoC: add Component level pcm_new/pcm_free v2")
added component level pcm_new/pcm_free, but flush_delayed_work()
on soc_pcm_private_free() is called in for_each_rtdcom() loop.
It doesn't need to be called many times.
This patch moves it out of loop.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c