drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 5 Jan 2022 10:48:26 +0000 (10:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:23 +0000 (14:23 +0200)
commitc43b4106cfc59d4c0010a953419fc6ab97287da7
tree4bc6cdd28642f218d461593748c4440f46504605
parent4db8e14ce478e5086e5811488c6dcb25e0cf9583
drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe

[ Upstream commit b146e343a9e05605b491b1bf4a2b62a39d5638d8 ]

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.

Fixes: 44cfc6233447 ("drm/bridge: Add NWL MIPI DSI host controller support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220105104826.1418-1-linmq006@gmail.com
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/nwl-dsi.c