Skip to content

Commit 2e5657a

Browse files
morimotoSuzuki K Poulose
authored andcommitted
hwtracing: 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: Suzuki K Poulose <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: James Clark <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4dcc0f9 commit 2e5657a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwtracing/coresight/coresight-platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int of_get_coresight_platform_data(struct device *dev,
275275
*/
276276
if (!parent) {
277277
/*
278-
* Avoid warnings in of_graph_get_next_endpoint()
278+
* Avoid warnings in for_each_endpoint_of_node()
279279
* if the device doesn't have any graph connections
280280
*/
281281
if (!of_graph_is_present(node))
@@ -286,7 +286,7 @@ static int of_get_coresight_platform_data(struct device *dev,
286286
}
287287

288288
/* Iterate through each output port to discover topology */
289-
while ((ep = of_graph_get_next_endpoint(parent, ep))) {
289+
for_each_endpoint_of_node(parent, ep) {
290290
/*
291291
* Legacy binding mixes input/output ports under the
292292
* same parent. So, skip the input ports if we are dealing

0 commit comments

Comments
 (0)