]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/dma/pl330.c
Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma
[karo-tx-linux.git] / drivers / dma / pl330.c
index bd69cc47150e0fea71b7ba2b8f8eadbda9ee4e83..593827b3fdd4fd8556724da998934a7c191b8d49 100644 (file)
@@ -2463,10 +2463,10 @@ static void pl330_free_chan_resources(struct dma_chan *chan)
        struct dma_pl330_chan *pch = to_pchan(chan);
        unsigned long flags;
 
-       spin_lock_irqsave(&pch->lock, flags);
-
        tasklet_kill(&pch->task);
 
+       spin_lock_irqsave(&pch->lock, flags);
+
        pl330_release_channel(pch->pl330_chid);
        pch->pl330_chid = NULL;