diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2023-05-21 13:02:49 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-05-24 09:54:32 +0300 |
commit | d27afd7ae6a316fac4d1f613db2de02ce1e872a4 (patch) | |
tree | 4f14bf4fb229130ced3b5191951e862cfc8c3393 /drivers/dma/dma-axi-dmac.c | |
parent | 3a4905c59832896f811f8b3e840be936ae598dd1 (diff) | |
download | linux-d27afd7ae6a316fac4d1f613db2de02ce1e872a4.tar.xz |
dmaengine: axi-dmac: 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: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20230521100252.3197-3-jszhang@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/dma-axi-dmac.c')
-rw-r--r-- | drivers/dma/dma-axi-dmac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index a812b9b00e6b..fc7cdad37161 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -963,7 +963,6 @@ static int axi_dmac_probe(struct platform_device *pdev) dma_dev->device_terminate_all = axi_dmac_terminate_all; dma_dev->device_synchronize = axi_dmac_synchronize; dma_dev->dev = &pdev->dev; - dma_dev->chancnt = 1; dma_dev->src_addr_widths = BIT(dmac->chan.src_width); dma_dev->dst_addr_widths = BIT(dmac->chan.dest_width); dma_dev->directions = BIT(dmac->chan.direction); |