summaryrefslogtreecommitdiffstats
path: root/drivers/dma/qcom
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2023-05-21 18:02:51 +0800
committerVinod Koul <vkoul@kernel.org>2023-05-24 12:24:32 +0530
commita10119a8b49bbd59c1bea4dfe5ea75d08d8506e5 (patch)
tree4ca0fa21d93b9ee0c66df1d7af8d89349fef2cf8 /drivers/dma/qcom
parentc68533337cad07e9239b7cac42d4e07f844ba95b (diff)
downloadlinux-stable-a10119a8b49bbd59c1bea4dfe5ea75d08d8506e5.tar.gz
linux-stable-a10119a8b49bbd59c1bea4dfe5ea75d08d8506e5.tar.bz2
linux-stable-a10119a8b49bbd59c1bea4dfe5ea75d08d8506e5.zip
dmaengine: hidma: 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> Link: https://lore.kernel.org/r/20230521100252.3197-5-jszhang@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/qcom')
-rw-r--r--drivers/dma/qcom/hidma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c
index 04d1c33afc12..344525c3a32f 100644
--- a/drivers/dma/qcom/hidma.c
+++ b/drivers/dma/qcom/hidma.c
@@ -214,7 +214,6 @@ static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig)
spin_lock_init(&mchan->lock);
list_add_tail(&mchan->chan.device_node, &ddev->channels);
- dmadev->ddev.chancnt++;
return 0;
}