On 06/01/2026 11:11, Jonathan Cameron wrote:
>> -    for_each_compatible_node(node, NULL, "samsung,exynos4210-sysram") {
>> +    for_each_compatible_node_scoped(node, NULL, 
>> "samsung,exynos4210-sysram") {
>>              struct resource res;
>>              if (!of_device_is_available(node))
>>                      continue;
> No idea how common this pattern is, but maybe worth
>       for_each_compatible_available_node_scoped() ?
> Bit of a pain as you'd need a of_find_compatible_available_node() helper.
> So I'll let you assess if there are enough instances of this to make it 
> worthwhile.


I think there are only like two or three instances, so not really worth
the effort.

Best regards,
Krzysztof

Reply via email to