drm/sun4i: use of_graph_get_remote_endpoint()

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: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Kuninori Morimoto 2017-08-10 04:36:43 +00:00 committed by Maxime Ripard
parent 998140d267
commit 0bd46d703e
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ static int sun4i_backend_of_get_id(struct device_node *node)
struct device_node *remote;
u32 reg;
remote = of_parse_phandle(ep, "remote-endpoint", 0);
remote = of_graph_get_remote_endpoint(ep);
if (!remote)
continue;