Commit 175ee8f1 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Helge Deller

fbdev: omapdss: use for_each_endpoint_of_node()

We already have for_each_endpoint_of_node(), don't use
of_graph_get_next_endpoint() directly. Replace it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 15be78e0
...@@ -149,8 +149,7 @@ static void __init omapdss_walk_device(struct device_node *node, bool root) ...@@ -149,8 +149,7 @@ static void __init omapdss_walk_device(struct device_node *node, bool root)
of_node_put(n); of_node_put(n);
n = NULL; for_each_endpoint_of_node(node, n) {
while ((n = of_graph_get_next_endpoint(node, n)) != NULL) {
struct device_node *pn; struct device_node *pn;
pn = of_graph_get_remote_port_parent(n); pn = of_graph_get_remote_port_parent(n);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment