aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-davinci/dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-davinci/dma.c b/arch/arm/mach-davinci/dma.c
index fd33919c95d4..95ce019c9b98 100644
--- a/arch/arm/mach-davinci/dma.c
+++ b/arch/arm/mach-davinci/dma.c
@@ -557,9 +557,9 @@ static int reserve_contiguous_slots(int ctlr, unsigned int id,
557 if (i == edma_cc[ctlr]->num_slots) 557 if (i == edma_cc[ctlr]->num_slots)
558 stop_slot = i; 558 stop_slot = i;
559 559
560 for (j = start_slot; j < stop_slot; j++) 560 j = start_slot;
561 if (test_bit(j, tmp_inuse)) 561 for_each_set_bit_from(j, tmp_inuse, stop_slot)
562 clear_bit(j, edma_cc[ctlr]->edma_inuse); 562 clear_bit(j, edma_cc[ctlr]->edma_inuse);
563 563
564 if (count) 564 if (count)
565 return -EBUSY; 565 return -EBUSY;