Skip to content

Commit c685333

Browse files
xhackerustcvinodkoul
authored andcommitted
dmaengine: plx_dma: 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> Acked-by: Logan Gunthorpe <logang@deltatee.com> Link: https://lore.kernel.org/r/20230521100252.3197-4-jszhang@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent d27afd7 commit c685333

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/dma/plx_dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ static int plx_dma_create(struct pci_dev *pdev)
517517
plxdev->bar = pcim_iomap_table(pdev)[0];
518518

519519
dma = &plxdev->dma_dev;
520-
dma->chancnt = 1;
521520
INIT_LIST_HEAD(&dma->channels);
522521
dma_cap_set(DMA_MEMCPY, dma->cap_mask);
523522
dma->copy_align = DMAENGINE_ALIGN_1_BYTE;

0 commit comments

Comments
 (0)