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

Krzysztof Kozlowski krzk at kernel.org
Tue Jan 6 22:26:03 AEDT 2026


On 06/01/2026 11:37, Jonathan Cameron wrote:
> On Tue, 06 Jan 2026 10:15:11 +0100
> Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com> 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 at huawei.com>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>
> Oops. Reviews on v1 as I didn't check for a v2. Sorry about that.

Yeah, I saw them. I'll go through them anyway, so probably there will be
v3 or I will just respin with added tags.


Best regards,
Krzysztof


More information about the Linuxppc-dev mailing list