Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b256fa4 authored by Inki Dae's avatar Inki Dae Committed by Inki Dae
Browse files

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: default avatarInki Dae <inki.dae@samsung.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
parent 082ca313
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: