drm/rockchip: rk618: rgb: fix find bridge fail

Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: I0ac8b1b2b3db90e5608a3bc8e5372cdb4863182a
This commit is contained in:
Shunqing Chen
2020-12-14 07:18:36 +00:00
committed by Tao Huang
parent 8877840a6f
commit d5d2966907

View File

@@ -252,8 +252,10 @@ static int rk618_rgb_probe(struct platform_device *pdev)
}
rgb->panel = of_drm_find_panel(remote);
if (!rgb->panel)
if (IS_ERR(rgb->panel)) {
rgb->panel = NULL;
rgb->bridge = of_drm_find_bridge(remote);
}
of_node_put(remote);
if (!rgb->panel && !rgb->bridge) {
dev_err(dev, "Waiting for panel/bridge driver\n");