mirror of https://gitee.com/openkylin/linux.git
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: Inki Dae <inki.dae@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
This commit is contained in:
parent
082ca313ca
commit
1b256fa4cd
|
@ -1735,13 +1735,13 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi)
|
|||
|
||||
ep = of_graph_get_next_endpoint(node, NULL);
|
||||
if (!ep) {
|
||||
ret = -ENXIO;
|
||||
ret = -EINVAL;
|
||||
goto end;
|
||||
}
|
||||
|
||||
dsi->bridge_node = of_graph_get_remote_port_parent(ep);
|
||||
if (!dsi->bridge_node) {
|
||||
ret = -ENXIO;
|
||||
ret = -EINVAL;
|
||||
goto end;
|
||||
}
|
||||
end:
|
||||
|
|
Loading…
Reference in New Issue