aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-07-04 16:13:09 +0530
committerVinod Koul <vinod.koul@intel.com>2016-07-16 20:19:05 +0530
commit085fedf7ee17a966d3e5b5d8523a18e3017242cf (patch)
tree01cd73acc636d51c5ac3e36b410ba60c2b33debf /drivers/dma
parentdmaengine: nbpfaxi: kill the tasklets upon exit (diff)
downloadlinux-dev-085fedf7ee17a966d3e5b5d8523a18e3017242cf.tar.xz
linux-dev-085fedf7ee17a966d3e5b5d8523a18e3017242cf.zip
dmaengine: mpc512x: 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: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/mpc512x_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c
index ccadafa51d5e..fa86592c7ae1 100644
--- a/drivers/dma/mpc512x_dma.c
+++ b/drivers/dma/mpc512x_dma.c
@@ -1110,6 +1110,7 @@ static int mpc_dma_remove(struct platform_device *op)
}
free_irq(mdma->irq, mdma);
irq_dispose_mapping(mdma->irq);
+ tasklet_kill(&mdma->tasklet);
return 0;
}