Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374665
b: refs/heads/master
c: f22eb14
h: refs/heads/master
i:
  374663: db90c20
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Vinod Koul committed May 2, 2013
1 parent 7ef0af7 commit 22aac6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: af31826d9b1ce432e033f0e91529aa1013076482
refs/heads/master: f22eb1402244885126c4263eb36b857e4182dd6f
11 changes: 6 additions & 5 deletions trunk/drivers/dma/of-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,13 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np,

ofdma = of_dma_get_controller(&dma_spec);

if (!ofdma)
continue;

chan = ofdma->of_dma_xlate(&dma_spec, ofdma);
if (ofdma) {
chan = ofdma->of_dma_xlate(&dma_spec, ofdma);

of_dma_put_controller(ofdma);
of_dma_put_controller(ofdma);
} else {
chan = NULL;
}

of_node_put(dma_spec.np);

Expand Down

0 comments on commit 22aac6c

Please sign in to comment.