|
@@ -557,9 +557,9 @@ static int reserve_contiguous_slots(int ctlr, unsigned int id,
|
|
|
if (i == edma_cc[ctlr]->num_slots)
|
|
|
stop_slot = i;
|
|
|
|
|
|
- for (j = start_slot; j < stop_slot; j++)
|
|
|
- if (test_bit(j, tmp_inuse))
|
|
|
- clear_bit(j, edma_cc[ctlr]->edma_inuse);
|
|
|
+ j = start_slot;
|
|
|
+ for_each_set_bit_from(j, tmp_inuse, stop_slot)
|
|
|
+ clear_bit(j, edma_cc[ctlr]->edma_inuse);
|
|
|
|
|
|
if (count)
|
|
|
return -EBUSY;
|