Commit e92e50e4 authored by Martin Povišer's avatar Martin Povišer Committed by Mark Brown

ASoC: apple: mca: Remove stale release of DMA channels

The commit 4ec8179c ("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: 4ec8179c ("ASoC: apple: mca: Postpone requesting of DMA channels")
Signed-off-by: default avatarMartin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220927113426.49724-2-povik+lin@cutebit.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent d584e73e
...@@ -970,18 +970,11 @@ static const struct snd_soc_component_driver mca_component = { ...@@ -970,18 +970,11 @@ static const struct snd_soc_component_driver mca_component = {
static void apple_mca_release(struct mca_data *mca) static void apple_mca_release(struct mca_data *mca)
{ {
int i, stream; int i;
for (i = 0; i < mca->nclusters; i++) { for (i = 0; i < mca->nclusters; i++) {
struct mca_cluster *cl = &mca->clusters[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)) if (!IS_ERR_OR_NULL(cl->clk_parent))
clk_put(cl->clk_parent); clk_put(cl->clk_parent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment