Skip to content

Commit a33e3b6

Browse files
nehebvinodkoul
authored andcommitted
dmaengine: mv_xor: match alloc_wc and free_wc
dma_alloc_wc is used but not dma_free_wc. Signed-off-by: Rosen Penev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 5cfe585 commit a33e3b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/mv_xor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ static int mv_xor_channel_remove(struct mv_xor_chan *mv_chan)
10131013

10141014
dma_async_device_unregister(&mv_chan->dmadev);
10151015

1016-
dma_free_coherent(dev, MV_XOR_POOL_SIZE,
1016+
dma_free_wc(dev, MV_XOR_POOL_SIZE,
10171017
mv_chan->dma_desc_pool_virt, mv_chan->dma_desc_pool);
10181018
dma_unmap_single(dev, mv_chan->dummy_src_addr,
10191019
MV_XOR_MIN_BYTE_COUNT, DMA_FROM_DEVICE);
@@ -1163,7 +1163,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
11631163
err_free_irq:
11641164
free_irq(mv_chan->irq, mv_chan);
11651165
err_free_dma:
1166-
dma_free_coherent(&pdev->dev, MV_XOR_POOL_SIZE,
1166+
dma_free_wc(&pdev->dev, MV_XOR_POOL_SIZE,
11671167
mv_chan->dma_desc_pool_virt, mv_chan->dma_desc_pool);
11681168
err_unmap_dst:
11691169
dma_unmap_single(dma_dev->dev, mv_chan->dummy_dst_addr,

0 commit comments

Comments
 (0)