提交 5caa214f 编写于 作者: M Miaoqian Lin 提交者: Zheng Zengkai

drm/bridge: Add missing pm_runtime_disable() in __dw_mipi_dsi_probe

stable inclusion
from stable-v5.10.110
commit 064e7f75325c2425de0eeba2aebed326b700612d
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=064e7f75325c2425de0eeba2aebed326b700612d

--------------------------------

[ Upstream commit 96211b7c ]

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: 46fc5154 ("drm/bridge/synopsys: Add MIPI DSI host controller bridge")
Signed-off-by: NMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: NRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220105104113.31415-1-linmq006@gmail.comReviewed-by: NRobert Foss <robert.foss@linaro.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 3eb68f6b
......@@ -1172,6 +1172,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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册