dmaengine: sun6i: Free the interrupt before killing the tasklet
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 30 Jul 2014 08:30:22 +0000 (10:30 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 30 Jul 2014 13:44:17 +0000 (19:14 +0530)
commit174427c1bb9e7810743f55a90a64da2c29d67b0b
tree75b4834190524909ccec81820ac7d0174392f428
parent92e4a3bf3812b0b0d06c6736fe4d83e1442640ef
dmaengine: sun6i: Free the interrupt before killing the tasklet

There's still a small window between the call to sun6i_kill_tasklet and the end
of the driver remove function where a spurious interrupt might trigger, and
start using deallocated resources.

Replace the call to synchronize_irq by a free_irq, so that we're sure that we
won't get any further interrupts when we're deallocating resources.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sun6i-dma.c