Skip to content

Commit

Permalink
Use for_each_compatible_node() macro.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Chris Zankel committed Dec 19, 2012
1 parent 5584b4d commit 90e3bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/platforms/xtfpga/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 90e3bc7

Please sign in to comment.