Skip to content

Commit 5eae252

Browse files
lategoodbyestorulf
authored andcommitted
mmc: bcm2835: Release DMA channel on driver unload
We need to release the slave DMA channel during driver unload. Signed-off-by: Stefan Wahren <[email protected]> Acked-by: Eric Anholt <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 07d4057 commit 5eae252

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mmc/host/bcm2835.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,9 @@ static int bcm2835_remove(struct platform_device *pdev)
14461446
cancel_work_sync(&host->dma_work);
14471447
cancel_delayed_work_sync(&host->timeout_work);
14481448

1449+
if (host->dma_chan_rxtx)
1450+
dma_release_channel(host->dma_chan_rxtx);
1451+
14491452
mmc_free_host(host->mmc);
14501453
platform_set_drvdata(pdev, NULL);
14511454

0 commit comments

Comments
 (0)