Skip to content

Commit d143f93

Browse files
committed
dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error"
This reverts commit 455896c ("dmaengine: shdma: Fix runtime PM imbalance on error") as the patch wrongly reduced the count on error and did not bail out. So drop the count by reverting the patch . Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 60c10db commit d143f93

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/dma/sh/shdma-base.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,8 @@ static dma_cookie_t shdma_tx_submit(struct dma_async_tx_descriptor *tx)
115115
ret = pm_runtime_get(schan->dev);
116116

117117
spin_unlock_irq(&schan->chan_lock);
118-
if (ret < 0) {
118+
if (ret < 0)
119119
dev_err(schan->dev, "%s(): GET = %d\n", __func__, ret);
120-
pm_runtime_put(schan->dev);
121-
}
122120

123121
pm_runtime_barrier(schan->dev);
124122

0 commit comments

Comments
 (0)