Skip to content

Commit

Permalink
mmc: bcm2835: Release DMA channel on driver unload
Browse files Browse the repository at this point in the history
We need to release the slave DMA channel during driver unload.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Stefan Wahren authored and Ulf Hansson committed Dec 17, 2018
1 parent 07d4057 commit 5eae252
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/host/bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,9 @@ static int bcm2835_remove(struct platform_device *pdev)
cancel_work_sync(&host->dma_work);
cancel_delayed_work_sync(&host->timeout_work);

if (host->dma_chan_rxtx)
dma_release_channel(host->dma_chan_rxtx);

mmc_free_host(host->mmc);
platform_set_drvdata(pdev, NULL);

Expand Down

0 comments on commit 5eae252

Please sign in to comment.