diff options
author | Niklas Cassel <niklas.cassel@axis.com> | 2015-04-07 10:42:45 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-04-17 14:08:28 -0400 |
commit | 0434a23198d6a271b70b75221c7568e60482c04e (patch) | |
tree | 8ed204759cf773877c9de9992dc793d894492bcc /drivers/dma | |
parent | 9c361b1afd9b4b2bba7fa1ffb080c9f5de3ff108 (diff) |
dmaengine: at_xdmac: unlock spin lock before return
Signed-off-by: Niklas Cassel <niklass@axis.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/at_xdmac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 09e2825a547a..6d18abf88cb5 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c | |||
@@ -1155,8 +1155,10 @@ static int at_xdmac_device_resume(struct dma_chan *chan) | |||
1155 | dev_dbg(chan2dev(chan), "%s\n", __func__); | 1155 | dev_dbg(chan2dev(chan), "%s\n", __func__); |
1156 | 1156 | ||
1157 | spin_lock_bh(&atchan->lock); | 1157 | spin_lock_bh(&atchan->lock); |
1158 | if (!at_xdmac_chan_is_paused(atchan)) | 1158 | if (!at_xdmac_chan_is_paused(atchan)) { |
1159 | spin_unlock_bh(&atchan->lock); | ||
1159 | return 0; | 1160 | return 0; |
1161 | } | ||
1160 | 1162 | ||
1161 | at_xdmac_write(atxdmac, AT_XDMAC_GRWR, atchan->mask); | 1163 | at_xdmac_write(atxdmac, AT_XDMAC_GRWR, atchan->mask); |
1162 | clear_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); | 1164 | clear_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); |