aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/mpc512x_dma.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-05-27 08:14:37 -0400
committerVinod Koul <vinod.koul@intel.com>2013-08-05 00:02:25 -0400
commit108fae842a2ecf6981429eb84c21eea7e888cba8 (patch)
tree253c6002177dde38c44b790c52118008bef14843 /drivers/dma/mpc512x_dma.c
parent4aa9fe0a1f307df4635822c3019bb196aa30b938 (diff)
mpc512x_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>
Diffstat (limited to 'drivers/dma/mpc512x_dma.c')
-rw-r--r--drivers/dma/mpc512x_dma.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c
index 2d956732aa3d..2fe435377333 100644
--- a/drivers/dma/mpc512x_dma.c
+++ b/drivers/dma/mpc512x_dma.c
@@ -556,15 +556,7 @@ static enum dma_status
556mpc_dma_tx_status(struct dma_chan *chan, dma_cookie_t cookie, 556mpc_dma_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
557 struct dma_tx_state *txstate) 557 struct dma_tx_state *txstate)
558{ 558{
559 struct mpc_dma_chan *mchan = dma_chan_to_mpc_dma_chan(chan); 559 return dma_cookie_status(chan, cookie, txstate);
560 enum dma_status ret;
561 unsigned long flags;
562
563 spin_lock_irqsave(&mchan->lock, flags);
564 ret = dma_cookie_status(chan, cookie, txstate);
565 spin_unlock_irqrestore(&mchan->lock, flags);
566
567 return ret;
568} 560}
569 561
570/* Prepare descriptor for memory to memory copy */ 562/* Prepare descriptor for memory to memory copy */