]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/sun4i: use of_graph_get_remote_endpoint()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 10 Aug 2017 04:36:43 +0000 (04:36 +0000)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Aug 2017 14:28:39 +0000 (16:28 +0200)
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>
drivers/gpu/drm/sun4i/sun4i_backend.c

index cf480218daa509bacb90daf4f83b7f22c2b23511..ec5943627aa5be396ead89bd6871c64b75e9c3fd 100644 (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;