File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2694,13 +2694,15 @@ static struct dma_async_tx_descriptor *pl330_prep_dma_cyclic(
2694
2694
for (i = 0 ; i < len / period_len ; i ++ ) {
2695
2695
desc = pl330_get_desc (pch );
2696
2696
if (!desc ) {
2697
+ unsigned long iflags ;
2698
+
2697
2699
dev_err (pch -> dmac -> ddma .dev , "%s:%d Unable to fetch desc\n" ,
2698
2700
__func__ , __LINE__ );
2699
2701
2700
2702
if (!first )
2701
2703
return NULL ;
2702
2704
2703
- spin_lock_irqsave (& pl330 -> pool_lock , flags );
2705
+ spin_lock_irqsave (& pl330 -> pool_lock , iflags );
2704
2706
2705
2707
while (!list_empty (& first -> node )) {
2706
2708
desc = list_entry (first -> node .next ,
@@ -2710,7 +2712,7 @@ static struct dma_async_tx_descriptor *pl330_prep_dma_cyclic(
2710
2712
2711
2713
list_move_tail (& first -> node , & pl330 -> desc_pool );
2712
2714
2713
- spin_unlock_irqrestore (& pl330 -> pool_lock , flags );
2715
+ spin_unlock_irqrestore (& pl330 -> pool_lock , iflags );
2714
2716
2715
2717
return NULL ;
2716
2718
}
You can’t perform that action at this time.
0 commit comments