Use for_each_child_of_node_scoped() to simplify code. Changes in v2: - Merge them into one patchset as Krzysztof suggested. Jinjie Ruan (3): of: overlay: Simplify with scoped for each OF child loop of/platform: Simplify with scoped for each OF child of: resolver: Simplify with scoped for each OF child loop drivers/of/overlay.c | 12 +++--------- drivers/of/platform.c | 14 ++++---------- drivers/of/resolver.c | 12 ++++-------- 3 files changed, 11 insertions(+), 27 deletions(-) -- 2.34.1