mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dmaengine: pl330: explicitly freeup irq
dmaengine device should explicitly call devm_free_irq() when using devm_request_irq(). The irq is still ON when devices remove is executed and irq should be quiesced before remove is completed. Signed-off-by: Vinod Koul <[email protected]> Cc: Jassi Brar <[email protected]> Cc: Linus Walleij <[email protected]>
This commit is contained in:
parent
898dbbf65f
commit
46cf94d6ab
1 changed files with 6 additions and 0 deletions
|
|
@ -3002,12 +3002,18 @@ static int pl330_remove(struct amba_device *adev)
|
|||
{
|
||||
struct pl330_dmac *pl330 = amba_get_drvdata(adev);
|
||||
struct dma_pl330_chan *pch, *_p;
|
||||
int i, irq;
|
||||
|
||||
pm_runtime_get_noresume(pl330->ddma.dev);
|
||||
|
||||
if (adev->dev.of_node)
|
||||
of_dma_controller_free(adev->dev.of_node);
|
||||
|
||||
for (i = 0; i < AMBA_NR_IRQS; i++) {
|
||||
irq = adev->irq[i];
|
||||
devm_free_irq(&adev->dev, irq, pl330);
|
||||
}
|
||||
|
||||
dma_async_device_unregister(&pl330->ddma);
|
||||
|
||||
/* Idle the DMAC */
|
||||
|
|
|
|||
Loading…
Reference in a new issue