]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dmaengine: sirf-dma: kill the tasklets upon exit
authorVinod Koul <vinod.koul@intel.com>
Tue, 5 Jul 2016 06:26:10 +0000 (11:56 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sat, 23 Jul 2016 10:37:24 +0000 (16:07 +0530)
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: Barry Song <Baohua.Song@csr.com>
drivers/dma/sirf-dma.c

index 906877919cf383adc73cf23c8f7d20580a737439..d8bc3f2a71db1ad7dee743cd92999f970eb97832 100644 (file)
@@ -980,6 +980,7 @@ static int sirfsoc_dma_remove(struct platform_device *op)
        of_dma_controller_free(op->dev.of_node);
        dma_async_device_unregister(&sdma->dma);
        free_irq(sdma->irq, sdma);
+       tasklet_kill(&sdma->tasklet);
        irq_dispose_mapping(sdma->irq);
        pm_runtime_disable(&op->dev);
        if (!pm_runtime_status_suspended(&op->dev))