diff options
author | Vinod Koul <vinod.koul@intel.com> | 2013-09-02 16:10:46 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-09-02 16:10:46 +0400 |
commit | 592745e2f8afbaeafcf72645f0a2b0285644e091 (patch) | |
tree | 5deafbb5ba32bf7a4834af9b7c64d5f31ebfcb39 /drivers/dma/dmaengine.c | |
parent | 355cdafe14d72c616dc804a756f3af4f4df4fe8c (diff) | |
parent | 303fd71d3fdf93c3d4fa7f0d72f93c21d9ced560 (diff) | |
download | linux-592745e2f8afbaeafcf72645f0a2b0285644e091.tar.xz |
Merge branch 'topic/of' into for-linus
Diffstat (limited to 'drivers/dma/dmaengine.c')
-rw-r--r-- | drivers/dma/dmaengine.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 0947ff64152e..d7d94d21a038 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -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; } |