提交 1b256fa4 编写于 作者: I Inki Dae 提交者: Inki Dae

drm/exynos: dsi: modify a error type when getting a node failed

This patch makes it to return -EINVAL instead of -ENXIO
when getting a port or remote node failed.
Signed-off-by: NInki Dae <inki.dae@samsung.com>
Reviewed-by: NJavier Martinez Canillas <javier@osg.samsung.com>
上级 082ca313
...@@ -1735,13 +1735,13 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi) ...@@ -1735,13 +1735,13 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi)
ep = of_graph_get_next_endpoint(node, NULL); ep = of_graph_get_next_endpoint(node, NULL);
if (!ep) { if (!ep) {
ret = -ENXIO; ret = -EINVAL;
goto end; goto end;
} }
dsi->bridge_node = of_graph_get_remote_port_parent(ep); dsi->bridge_node = of_graph_get_remote_port_parent(ep);
if (!dsi->bridge_node) { if (!dsi->bridge_node) {
ret = -ENXIO; ret = -EINVAL;
goto end; goto end;
} }
end: end:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册