Skip to content
Commit 0618c077 authored by Zhang Shurong's avatar Zhang Shurong Committed by Vinod Koul
Browse files

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: default avatarZhang Shurong <zhang_shurong@foxmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/tencent_DD2D371DB5925B4B602B1E1D0A5FA88F1208@qq.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 01f1ae27
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment