From: Martin Povišer Date: Tue, 27 Sep 2022 11:34:25 +0000 (+0200) Subject: ASoC: apple: mca: Remove stale release of DMA channels X-Git-Tag: baikal/aarch64/sdk6.1~2967^2^2~14 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=46888032e74d4d98a692c09991a4d56c37c739b7;p=kernel.git ASoC: apple: mca: Remove stale release of DMA channels The commit 68ed83900517 ("ASoC: apple: mca: Postpone requesting of DMA channels") shuffled around with the requesting and releasing of DMA channels. It left behind stale release calls from within apple_mca_release, remove those now. Fixes: 68ed83900517 ("ASoC: apple: mca: Postpone requesting of DMA channels") Signed-off-by: Martin Povišer Link: https://lore.kernel.org/r/20220927113426.49724-2-povik+lin@cutebit.org Signed-off-by: Mark Brown --- diff --git a/sound/soc/apple/mca.c b/sound/soc/apple/mca.c index 75925bfcf754a..7ca653987b78a 100644 --- a/sound/soc/apple/mca.c +++ b/sound/soc/apple/mca.c @@ -970,18 +970,11 @@ static const struct snd_soc_component_driver mca_component = { static void apple_mca_release(struct mca_data *mca) { - int i, stream; + int i; for (i = 0; i < mca->nclusters; i++) { struct mca_cluster *cl = &mca->clusters[i]; - for_each_pcm_streams(stream) { - if (IS_ERR_OR_NULL(cl->dma_chans[stream])) - continue; - - dma_release_channel(cl->dma_chans[stream]); - } - if (!IS_ERR_OR_NULL(cl->clk_parent)) clk_put(cl->clk_parent);