Skip to content

Commit a10119a

Browse files
xhackerustcvinodkoul
authored andcommitted
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>
1 parent c685333 commit a10119a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/dma/qcom/hidma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig)
214214

215215
spin_lock_init(&mchan->lock);
216216
list_add_tail(&mchan->chan.device_node, &ddev->channels);
217-
dmadev->ddev.chancnt++;
218217
return 0;
219218
}
220219

0 commit comments

Comments
 (0)