mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 05:30:54 +07:00
Use for_each_compatible_node() macro.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
parent
5584b4da78
commit
90e3bc798b
@ -105,9 +105,9 @@ static void __init update_clock_frequency(struct device_node *node)
|
||||
|
||||
static int __init machine_setup(void)
|
||||
{
|
||||
struct device_node *serial = NULL;
|
||||
struct device_node *serial;
|
||||
|
||||
while ((serial = of_find_compatible_node(serial, NULL, "ns16550a")))
|
||||
for_each_compatible_node(serial, NULL, "ns16550a")
|
||||
update_clock_frequency(serial);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user