Commit 907514a7 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Vinod Koul
Browse files

dmaengine: sprd: Don't set chancnt



The dma framework will calculate the dma channels chancnt, setting it
ourself is wrong.

Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Reviewed-by: default avatarBaolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230521100252.3197-6-jszhang@kernel.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent a10119a8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1169,7 +1169,6 @@ static int sprd_dma_probe(struct platform_device *pdev)

	dma_cap_set(DMA_MEMCPY, sdev->dma_dev.cap_mask);
	sdev->total_chns = chn_count;
	sdev->dma_dev.chancnt = chn_count;
	INIT_LIST_HEAD(&sdev->dma_dev.channels);
	INIT_LIST_HEAD(&sdev->dma_dev.global_node);
	sdev->dma_dev.dev = &pdev->dev;