Skip to content

Commit f18b461

Browse files
author
Vinod Koul
committed
Merge branch 'topic/pl330' into for-linus
2 parents c21bd0a + a3ca831 commit f18b461

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/dma/pl330.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ static void pl330_dotask(unsigned long data)
15101510
/* Returns 1 if state was updated, 0 otherwise */
15111511
static int pl330_update(struct pl330_dmac *pl330)
15121512
{
1513-
struct dma_pl330_desc *descdone, *tmp;
1513+
struct dma_pl330_desc *descdone;
15141514
unsigned long flags;
15151515
void __iomem *regs;
15161516
u32 val;
@@ -1588,7 +1588,9 @@ static int pl330_update(struct pl330_dmac *pl330)
15881588
}
15891589

15901590
/* Now that we are in no hurry, do the callbacks */
1591-
list_for_each_entry_safe(descdone, tmp, &pl330->req_done, rqd) {
1591+
while (!list_empty(&pl330->req_done)) {
1592+
descdone = list_first_entry(&pl330->req_done,
1593+
struct dma_pl330_desc, rqd);
15921594
list_del(&descdone->rqd);
15931595
spin_unlock_irqrestore(&pl330->lock, flags);
15941596
dma_pl330_rqcb(descdone, PL330_ERR_NONE);

0 commit comments

Comments
 (0)