Skip to content

Commit

Permalink
Merge branch 'topic/of' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinod Koul committed Sep 2, 2013
2 parents 355cdaf + 303fd71 commit 592745e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions drivers/dma/dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,16 +514,16 @@ struct dma_chan *dma_get_slave_channel(struct dma_chan *chan)
/* lock against __dma_request_channel */
mutex_lock(&dma_list_mutex);

if (chan->client_count == 0)
if (chan->client_count == 0) {
err = dma_chan_get(chan);
else
if (err)
pr_debug("%s: failed to get %s: (%d)\n",
__func__, dma_chan_name(chan), err);
} else
chan = NULL;

mutex_unlock(&dma_list_mutex);

if (err)
pr_debug("%s: failed to get %s: (%d)\n",
__func__, dma_chan_name(chan), err);

return chan;
}
Expand Down
3 changes: 2 additions & 1 deletion drivers/dma/of-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np,

count = of_property_count_strings(np, "dma-names");
if (count < 0) {
pr_err("%s: dma-names property missing or empty\n", __func__);
pr_err("%s: dma-names property of node '%s' missing or empty\n",
__func__, np->full_name);
return NULL;
}

Expand Down

0 comments on commit 592745e

Please sign in to comment.