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>
This commit is contained in:
Родитель
c68533337c
Коммит
a10119a8b4
|
@ -214,7 +214,6 @@ static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig)
|
||||||
|
|
||||||
spin_lock_init(&mchan->lock);
|
spin_lock_init(&mchan->lock);
|
||||||
list_add_tail(&mchan->chan.device_node, &ddev->channels);
|
list_add_tail(&mchan->chan.device_node, &ddev->channels);
|
||||||
dmadev->ddev.chancnt++;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче