drm: rcar-du: Use of_graph_get_remote_endpoint()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 28 Jun 2017 00:32:17 +0000 (00:32 +0000)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 3 Aug 2017 13:17:21 +0000 (16:17 +0300)
Now, we can use of_graph_get_remote_endpoint(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_kms.c

index 5d681ea53be643f6e0c7c90e465438e4e85bbe8d..48961896c53ec48cd14fd0a3d6fd4bb4111ce20a 100644 (file)
@@ -309,7 +309,7 @@ static int rcar_du_encoders_init_one(struct rcar_du_device *rcdu,
                return -ENODEV;
        }
 
-       entity_ep_node = of_parse_phandle(ep->local_node, "remote-endpoint", 0);
+       entity_ep_node = of_graph_get_remote_endpoint(ep->local_node);
 
        for_each_endpoint_of_node(entity, ep_node) {
                if (ep_node == entity_ep_node)