Merge tag 'upstream-3.11-rc1' of git://git.infradead.org/linux-ubifs
[deliverable/linux.git] / drivers / dma / pl330.c
index a17553f7c02809325b06830d6eb1e36a4c95e435..7ec82f0667eb773fc916742e45ad3a5414238b1d 100644 (file)
@@ -2485,10 +2485,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;
 
This page took 0.024196 seconds and 5 git commands to generate.