[PATCH] device property: use of_graph_get_remote_endpoint() for of_fwnode

From: Kuninori Morimoto
Date: Thu Aug 10 2017 - 00:43:32 EST


From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

Now, we can use of_graph_get_remote_endpoint(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
---
- not tested

drivers/of/property.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/of/property.c b/drivers/of/property.c
index 067f9fa..ad4eefa 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -913,8 +913,8 @@ static struct fwnode_handle *of_fwnode_get_parent(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 *
--
1.9.1