Skip to content

Commit

Permalink
device property: use of_graph_get_remote_endpoint() for of_fwnode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Rob Herring committed Aug 14, 2017
1 parent a41cbdf commit 358155e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/of/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 358155e

Please sign in to comment.