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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 01f1ae2 commit 0618c07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)