Skip to content

Commit f7f3ddb

Browse files
morimototomba
authored andcommitted
gpu: drm: 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 <kuninori.morimoto.gx@renesas.com> Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/87jzh3lnts.wl-kuninori.morimoto.gx@renesas.com
1 parent 16c9898 commit f7f3ddb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • drivers/gpu/drm/omapdrm/dss

drivers/gpu/drm/omapdrm/dss/base.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ static void omapdss_walk_device(struct device *dev, struct device_node *node,
242242

243243
of_node_put(n);
244244

245-
n = NULL;
246-
while ((n = of_graph_get_next_endpoint(node, n)) != NULL) {
245+
for_each_endpoint_of_node(node, n) {
247246
struct device_node *pn = of_graph_get_remote_port_parent(n);
248247

249248
if (!pn)

0 commit comments

Comments
 (0)