diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 08:14:36 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 00:02:24 -0400 |
commit | 4aa9fe0a1f307df4635822c3019bb196aa30b938 (patch) | |
tree | 55f70aeba36ecf6f0aa6de630235f79587f19cd2 /drivers/dma/mmp_pdma.c | |
parent | 9b0b0bdc6a3ba70b73ea2fdd6c09ee46b34d3f94 (diff) |
mmp_pdma: 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/mmp_pdma.c')
-rw-r--r-- | drivers/dma/mmp_pdma.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index c26699f9c4df..ad4b0a7167f6 100644 --- a/drivers/dma/mmp_pdma.c +++ b/drivers/dma/mmp_pdma.c | |||
@@ -632,15 +632,7 @@ static int mmp_pdma_control(struct dma_chan *dchan, enum dma_ctrl_cmd cmd, | |||
632 | static enum dma_status mmp_pdma_tx_status(struct dma_chan *dchan, | 632 | static enum dma_status mmp_pdma_tx_status(struct dma_chan *dchan, |
633 | dma_cookie_t cookie, struct dma_tx_state *txstate) | 633 | dma_cookie_t cookie, struct dma_tx_state *txstate) |
634 | { | 634 | { |
635 | struct mmp_pdma_chan *chan = to_mmp_pdma_chan(dchan); | 635 | return dma_cookie_status(dchan, cookie, txstate); |
636 | enum dma_status ret; | ||
637 | unsigned long flags; | ||
638 | |||
639 | spin_lock_irqsave(&chan->desc_lock, flags); | ||
640 | ret = dma_cookie_status(dchan, cookie, txstate); | ||
641 | spin_unlock_irqrestore(&chan->desc_lock, flags); | ||
642 | |||
643 | return ret; | ||
644 | } | 636 | } |
645 | 637 | ||
646 | /** | 638 | /** |