Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error"

This reverts commit 455896c53d5b ("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 -3
+1 -3
drivers/dma/sh/shdma-base.c
··· 115 115 ret = pm_runtime_get(schan->dev); 116 116 117 117 spin_unlock_irq(&schan->chan_lock); 118 - if (ret < 0) { 118 + if (ret < 0) 119 119 dev_err(schan->dev, "%s(): GET = %d\n", __func__, ret); 120 - pm_runtime_put(schan->dev); 121 - } 122 120 123 121 pm_runtime_barrier(schan->dev); 124 122