aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-05-27 08:14:38 -0400
committerVinod Koul <vinod.koul@intel.com>2013-08-05 00:02:25 -0400
commitda0a908ed96b3eda788d6dc87b3e0b1610c40ec8 (patch)
tree9f0b726b04da966d00b6f61824cd7123949f0b8f
parent108fae842a2ecf6981429eb84c21eea7e888cba8 (diff)
pch_dma: remove useless use of lock
Accordingly to dma_cookie_status() description locking is not required. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/pch_dma.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
index 0bbdea5059f3..956314de7c44 100644
--- a/drivers/dma/pch_dma.c
+++ b/drivers/dma/pch_dma.c
@@ -564,14 +564,7 @@ static void pd_free_chan_resources(struct dma_chan *chan)
564static enum dma_status pd_tx_status(struct dma_chan *chan, dma_cookie_t cookie, 564static enum dma_status pd_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
565 struct dma_tx_state *txstate) 565 struct dma_tx_state *txstate)
566{ 566{
567 struct pch_dma_chan *pd_chan = to_pd_chan(chan); 567 return dma_cookie_status(chan, cookie, txstate);
568 enum dma_status ret;
569
570 spin_lock_irq(&pd_chan->lock);
571 ret = dma_cookie_status(chan, cookie, txstate);
572 spin_unlock_irq(&pd_chan->lock);
573
574 return ret;
575} 568}
576 569
577static void pd_issue_pending(struct dma_chan *chan) 570static void pd_issue_pending(struct dma_chan *chan)