Message ID | 1467730478-9696-13-git-send-email-vinod.koul@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index aed0b77285da..3dd0bb1d6409 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -1239,6 +1239,8 @@ static void imxdma_free_irq(struct platform_device *pdev, struct imxdma_engine * if (!is_imx1_dma(imxdma)) devm_free_irq(&pdev->dev, imxdmac->irq, imxdma); + + tasklet_kill(&imxdmac->dma_tasklet); } }
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: Sascha Hauer <s.hauer@pengutronix.de> Cc: Linus Walleij <linus.walleij@linaro.org> --- drivers/dma/imx-dma.c | 2 ++ 1 file changed, 2 insertions(+)