1
0
Fork 0

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>
hifive-unleashed-5.1
Vinod Koul 2016-07-04 16:13:09 +05:30
parent b63abf1879
commit 085fedf7ee
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}