device property: use of_graph_get_remote_endpoint() for of_fwnode
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 10 Aug 2017 04:38:16 +0000 (04:38 +0000)
committerRob Herring <robh@kernel.org>
Mon, 14 Aug 2017 21:10:33 +0000 (16:10 -0500)
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: Rob Herring <robh@kernel.org>
drivers/of/property.c

index ab4cf1da77b5b7b3a25d1a2b24f74c72d7ba056c..9eb45f69db2fe0b68fa952b1c9289f28f28e9510 100644 (file)
@@ -899,8 +899,8 @@ of_fwnode_graph_get_next_endpoint(struct fwnode_handle *fwnode,
 static struct fwnode_handle *
 of_fwnode_graph_get_remote_endpoint(struct fwnode_handle *fwnode)
 {
-       return of_fwnode_handle(of_parse_phandle(to_of_node(fwnode),
-                                                "remote-endpoint", 0));
+       return of_fwnode_handle(
+               of_graph_get_remote_endpoint(to_of_node(fwnode)));
 }
 
 static struct fwnode_handle *