summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2023-05-21 18:02:52 +0800
committerVinod Koul <vkoul@kernel.org>2023-05-24 12:24:32 +0530
commit907514a7dc4c574136e8fb576b014be05d25813a (patch)
treed88f91216c27b57dc66d67b520e3b109dde96ab6
parenta10119a8b49bbd59c1bea4dfe5ea75d08d8506e5 (diff)
downloadlwn-907514a7dc4c574136e8fb576b014be05d25813a.tar.gz
lwn-907514a7dc4c574136e8fb576b014be05d25813a.zip
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>
-rw-r--r--drivers/dma/sprd-dma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c
index 474d3ba8ec9f..2b639adb48ba 100644
--- a/drivers/dma/sprd-dma.c
+++ b/drivers/dma/sprd-dma.c
@@ -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;