diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-01-05 11:41:09 +0100 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-01-05 18:49:51 +0100 |
commit | 96211b7c56b109a52768e6cc5e23a1f79316eca0 (patch) | |
tree | 6bca8fc6f73cef40a63ceee82b3c35dff1e7059f /drivers/gpu/drm/bridge | |
parent | drm/bridge: parade-ps8640: Link device to ensure suspend/resume order (diff) | |
download | linux-96211b7c56b109a52768e6cc5e23a1f79316eca0.tar.xz linux-96211b7c56b109a52768e6cc5e23a1f79316eca0.zip |
drm/bridge: Add missing pm_runtime_disable() in __dw_mipi_dsi_probe
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().
Add missing pm_runtime_disable() for __dw_mipi_dsi_probe.
Fixes: 46fc51546d44 ("drm/bridge/synopsys: Add MIPI DSI host controller bridge")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220105104113.31415-1-linmq006@gmail.com
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index 3f6564762e24..2a58b0b7ace5 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -1202,6 +1202,7 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, ret = mipi_dsi_host_register(&dsi->dsi_host); if (ret) { dev_err(dev, "Failed to register MIPI host: %d\n", ret); + pm_runtime_disable(dev); dw_mipi_dsi_debugfs_remove(dsi); return ERR_PTR(ret); } |