powerpc/powermac/pfunc_base: Use helper function for_each_child_of_node()

for_each_child_of_node() can help to iterate through the device_node,
and we don't need to do it manually. No functional change with this
conversion.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240822085430.25753-2-zhangzekun11@huawei.com
This commit is contained in:
Zhang Zekun 2024-08-22 16:54:29 +08:00 • committed by Michael Ellerman
commit 197116e2de