Skip to content

Commit 907514a

Browse files
xhackerustcvinodkoul
authored andcommitted
dmaengine: sprd: Don't set chancnt
The dma framework will calculate the dma channels chancnt, setting it ourself is wrong. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Link: https://lore.kernel.org/r/20230521100252.3197-6-jszhang@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent a10119a commit 907514a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/dma/sprd-dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,6 @@ static int sprd_dma_probe(struct platform_device *pdev)
11691169

11701170
dma_cap_set(DMA_MEMCPY, sdev->dma_dev.cap_mask);
11711171
sdev->total_chns = chn_count;
1172-
sdev->dma_dev.chancnt = chn_count;
11731172
INIT_LIST_HEAD(&sdev->dma_dev.channels);
11741173
INIT_LIST_HEAD(&sdev->dma_dev.global_node);
11751174
sdev->dma_dev.dev = &pdev->dev;

0 commit comments

Comments
 (0)