summaryrefslogtreecommitdiffstats
path: root/drivers/dma/nbpfaxi.c
diff options
context:
space:
mode:
authorVinod Koul2016-07-04 12:36:04 +0200
committerVinod Koul2016-07-16 16:49:04 +0200
commitb63abf18796f2b5cab22a3b48b4f854dbee0faaa (patch)
treef2e6db00d8e7124895fc78f013473b569e0a0848 /drivers/dma/nbpfaxi.c
parentdmaengine: nbpfaxi: explicitly freeup irq (diff)
downloadkernel-qcow2-linux-b63abf18796f2b5cab22a3b48b4f854dbee0faaa.tar.gz
kernel-qcow2-linux-b63abf18796f2b5cab22a3b48b4f854dbee0faaa.tar.xz
kernel-qcow2-linux-b63abf18796f2b5cab22a3b48b4f854dbee0faaa.zip
dmaengine: nbpfaxi: kill the tasklets upon exit
drivers should ensure that tasklets are killed, so that they can't be run after driver remove is executed Signed-off-by: Vinod Koul <vinod.koul@intel.com> Cc: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Diffstat (limited to 'drivers/dma/nbpfaxi.c')
-rw-r--r--drivers/dma/nbpfaxi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c
index f489f4e3429f..08c45c185549 100644
--- a/drivers/dma/nbpfaxi.c
+++ b/drivers/dma/nbpfaxi.c
@@ -1456,6 +1456,8 @@ static int nbpf_remove(struct platform_device *pdev)
struct nbpf_channel *chan = nbpf->chan + i;
devm_free_irq(&pdev->dev, chan->irq, chan);
+
+ tasklet_kill(&chan->tasklet);
}
of_dma_controller_free(pdev->dev.of_node);