Skip to content

Commit 0618c07

Browse files
ZhangShurongvinodkoul
authored andcommitted
dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. We fix it by calling pm_runtime_disable when error returns. Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/tencent_DD2D371DB5925B4B602B1E1D0A5FA88F1208@qq.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 01f1ae2 commit 0618c07

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/dma/ste_dma40.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3668,6 +3668,7 @@ static int __init d40_probe(struct platform_device *pdev)
36683668
regulator_disable(base->lcpa_regulator);
36693669
regulator_put(base->lcpa_regulator);
36703670
}
3671+
pm_runtime_disable(base->dev);
36713672

36723673
report_failure:
36733674
d40_err(dev, "probe failed\n");

0 commit comments

Comments
 (0)