mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
drm/rockchip: analogix_dp: Accept drm_of_find_panel_or_bridge failure
Not having an endpoint bound in DT should not cause a failure here, there are fallbacks. So explicitly accept a missing endpoint. Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> Change-Id: Iea7e2456de05b76cf6d94232ab9bb75425cfffc0
This commit is contained in:
@@ -493,7 +493,7 @@ static int rockchip_dp_probe(struct platform_device *pdev)
|
||||
int ret;
|
||||
|
||||
ret = drm_of_find_panel_or_bridge(dev->of_node, 1, 0, &panel, NULL);
|
||||
if (ret < 0)
|
||||
if (ret < 0 && ret != -ENODEV)
|
||||
return ret;
|
||||
|
||||
dp = devm_kzalloc(dev, sizeof(*dp), GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user