Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286117
b: refs/heads/master
c: d561394
h: refs/heads/master
i:
  286115: fd0eae4
v: v3
  • Loading branch information
Vinod Koul committed Nov 28, 2011
1 parent 930ad36 commit 8f2cfa3
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: 61e183f8306934a9f66557f69f1f0f56f18dca06
refs/heads/master: d5613947addb1e1096a3be29dfe817905e385469
8 changes: 4 additions & 4 deletions trunk/drivers/dma/timb_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ static void __td_unmap_desc(struct timb_dma_chan *td_chan, const u8 *dma_desc,

if (single)
dma_unmap_single(chan2dev(&td_chan->chan), addr, len,
td_chan->direction);
DMA_TO_DEVICE);
else
dma_unmap_page(chan2dev(&td_chan->chan), addr, len,
td_chan->direction);
DMA_TO_DEVICE);
}

static void __td_unmap_descs(struct timb_dma_desc *td_desc, bool single)
Expand Down Expand Up @@ -398,7 +398,7 @@ static struct timb_dma_desc *td_alloc_init_desc(struct timb_dma_chan *td_chan)
td_desc->txd.flags = DMA_CTRL_ACK;

td_desc->txd.phys = dma_map_single(chan2dmadev(chan),
td_desc->desc_list, td_desc->desc_list_len, DMA_MEM_TO_DEV);
td_desc->desc_list, td_desc->desc_list_len, DMA_TO_DEVICE);

err = dma_mapping_error(chan2dmadev(chan), td_desc->txd.phys);
if (err) {
Expand All @@ -419,7 +419,7 @@ static void td_free_desc(struct timb_dma_desc *td_desc)
{
dev_dbg(chan2dev(td_desc->txd.chan), "Freeing desc: %p\n", td_desc);
dma_unmap_single(chan2dmadev(td_desc->txd.chan), td_desc->txd.phys,
td_desc->desc_list_len, DMA_MEM_TO_DEV);
td_desc->desc_list_len, DMA_TO_DEVICE);

kfree(td_desc->desc_list);
kfree(td_desc);
Expand Down

0 comments on commit 8f2cfa3

Please sign in to comment.