Skip to content

Commit 175ee8f

Browse files
morimotohdeller
authored andcommitted
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: Kuninori Morimoto <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 15be78e commit 175ee8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ static void __init omapdss_walk_device(struct device_node *node, bool root)
149149

150150
of_node_put(n);
151151

152-
n = NULL;
153-
while ((n = of_graph_get_next_endpoint(node, n)) != NULL) {
152+
for_each_endpoint_of_node(node, n) {
154153
struct device_node *pn;
155154

156155
pn = of_graph_get_remote_port_parent(n);

0 commit comments

Comments
 (0)