Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233282
b: refs/heads/master
c: d718f4e
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo authored and Dan Williams committed Jan 30, 2011
1 parent d2b2acb commit ced6c31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 939fd4f077269dd863cd630a3b3195a20acf7d02
refs/heads/master: d718f4ebddcb0bebdbf771a6672756b666e5c31b
8 changes: 4 additions & 4 deletions trunk/drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,15 +770,15 @@ static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
__raw_writel(1 << channel, sdma->regs + SDMA_H_START);
}

static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdma)
static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdmac)
{
dma_cookie_t cookie = sdma->chan.cookie;
dma_cookie_t cookie = sdmac->chan.cookie;

if (++cookie < 0)
cookie = 1;

sdma->chan.cookie = cookie;
sdma->desc.cookie = cookie;
sdmac->chan.cookie = cookie;
sdmac->desc.cookie = cookie;

return cookie;
}
Expand Down

0 comments on commit ced6c31

Please sign in to comment.