summaryrefslogtreecommitdiff
path: root/drivers/dma/plx_dma.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2023-05-21 13:02:50 +0300
committerVinod Koul <vkoul@kernel.org>2023-05-24 09:54:32 +0300
commitc68533337cad07e9239b7cac42d4e07f844ba95b (patch)
treea777a9f75114eede5881b17d14b7dd815113b160 /drivers/dma/plx_dma.c
parentd27afd7ae6a316fac4d1f613db2de02ce1e872a4 (diff)
downloadlinux-c68533337cad07e9239b7cac42d4e07f844ba95b.tar.xz
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>
Diffstat (limited to 'drivers/dma/plx_dma.c')
-rw-r--r--drivers/dma/plx_dma.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c
index 12725fa1655f..34b6416c3287 100644
--- a/drivers/dma/plx_dma.c
+++ b/drivers/dma/plx_dma.c
@@ -517,7 +517,6 @@ static int plx_dma_create(struct pci_dev *pdev)
plxdev->bar = pcim_iomap_table(pdev)[0];
dma = &plxdev->dma_dev;
- dma->chancnt = 1;
INIT_LIST_HEAD(&dma->channels);
dma_cap_set(DMA_MEMCPY, dma->cap_mask);
dma->copy_align = DMAENGINE_ALIGN_1_BYTE;