On Wed, Feb 05, 2025 at 05:18:14PM +0100, Geert Uytterhoeven wrote: > Hi Nikita, > > On Wed, 5 Feb 2025 at 17:15, Nikita Yushchenko > <nikita.yoush@xxxxxxxxxxxxxxxxxx> wrote: > > > Simplify rswitch_get_port_node() by using the > > > for_each_available_child_of_node() helper instead of manually ignoring > > > unavailable child nodes, and leaking a reference. > > > > FYI, I have a patch in my queue that replaces this code with traversing child nodes (via > > for_each_available_child_of_node()) and only creating devices for ports actually defined in the device tree. > > OK, thanks for letting me know! I am assuming that we can treat Nikita's patch as being orthogonal to this one. Reviewed-by: Simon Horman <horms@xxxxxxxxxx>