Re: [PATCH v2 01/11] of: Add for_each_compatible_node_scoped() helper

From: Jonathan Cameron

Date: Tue Jan 06 2026 - 05:37:47 EST


On Tue, 06 Jan 2026 10:15:11 +0100
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx> wrote:

> Just like looping through children and available children, add a scoped
> helper for for_each_compatible_node() so error paths can drop
> of_node_put() leading to simpler code.
>
> Suggested-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Oops. Reviews on v1 as I didn't check for a v2. Sorry about that.

J