Commit a10119a8 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Vinod Koul
Browse files

dmaengine: hidma: Don't set chancnt



The dma framework will calculate the dma channels chancnt, setting it
ourself is wrong.

Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20230521100252.3197-5-jszhang@kernel.org


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c6853333
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}