mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
a10119a8b4
commit
907514a7dc
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue