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)
committerRobert Foss <robert.foss@linaro.org>
Wed, 5 Jan 2022 17:50:00 +0000 (18:50 +0100)
commitb146e343a9e05605b491b1bf4a2b62a39d5638d8
treee2a497f929306808dc01d5c622e722d55a46e185
parent96211b7c56b109a52768e6cc5e23a1f79316eca0
drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_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.

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>
drivers/gpu/drm/bridge/nwl-dsi.c