We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e00833 commit 11a427bCopy full SHA for 11a427b
drivers/dma/sh/rz-dmac.c
@@ -919,7 +919,7 @@ static int rz_dmac_probe(struct platform_device *pdev)
919
for (i = 0; i < channel_num; i++) {
920
struct rz_dmac_chan *channel = &dmac->channels[i];
921
922
- dma_free_coherent(NULL,
+ dma_free_coherent(&pdev->dev,
923
sizeof(struct rz_lmdesc) * DMAC_NR_LMDESC,
924
channel->lmdesc.base,
925
channel->lmdesc.base_dma);
@@ -936,7 +936,7 @@ static int rz_dmac_remove(struct platform_device *pdev)
936
for (i = 0; i < dmac->n_channels; i++) {
937
938
939
940
941
942
0 commit comments