diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-08-10 04:38:16 +0000 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-08-14 16:10:33 -0500 |
commit | 358155ede4fbd047d055a0ffee95d042b02872ae (patch) | |
tree | ec8046d112c059ede3862b1479f5cd76f99f2ba7 /drivers/of | |
parent | a41cbdf871709d01a5e5eb3b35761aaeeb2e03ef (diff) | |
download | linux-358155ede4fbd047d055a0ffee95d042b02872ae.tar.gz linux-358155ede4fbd047d055a0ffee95d042b02872ae.tar.bz2 linux-358155ede4fbd047d055a0ffee95d042b02872ae.zip |
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 <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/property.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c index ab4cf1da77b5..9eb45f69db2f 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -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 * |