mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 15:03:04 +00:00
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:
parent
8ae4f16f7d
commit
197116e2de
|
@ -313,7 +313,7 @@ static void __init uninorth_install_pfunc(void)
|
|||
/*
|
||||
* Install handlers for the hwclock child if any
|
||||
*/
|
||||
for (np = NULL; (np = of_get_next_child(uninorth_node, np)) != NULL;)
|
||||
for_each_child_of_node(uninorth_node, np)
|
||||
if (of_node_name_eq(np, "hw-clock")) {
|
||||
unin_hwclock = np;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user