Skip to content

Commit 358155e

Browse files
morimotorobherring
authored andcommitted
device property: use of_graph_get_remote_endpoint() for of_fwnode
Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent a41cbdf commit 358155e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/of/property.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,8 @@ of_fwnode_graph_get_next_endpoint(struct fwnode_handle *fwnode,
899899
static struct fwnode_handle *
900900
of_fwnode_graph_get_remote_endpoint(struct fwnode_handle *fwnode)
901901
{
902-
return of_fwnode_handle(of_parse_phandle(to_of_node(fwnode),
903-
"remote-endpoint", 0));
902+
return of_fwnode_handle(
903+
of_graph_get_remote_endpoint(to_of_node(fwnode)));
904904
}
905905

906906
static struct fwnode_handle *

0 commit comments

Comments
 (0)