Commit 90e3bc79 authored by Wei Yongjun's avatar Wei Yongjun Committed by Chris Zankel

Use for_each_compatible_node() macro.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent 5584b4da
...@@ -105,9 +105,9 @@ static void __init update_clock_frequency(struct device_node *node) ...@@ -105,9 +105,9 @@ static void __init update_clock_frequency(struct device_node *node)
static int __init machine_setup(void) 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); update_clock_frequency(serial);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment