diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-12-03 03:35:11 -0500 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-12-19 00:10:25 -0500 |
commit | 90e3bc798bec8b33ba4300a7751b627b54b3bb5b (patch) | |
tree | 173adfc87b30ae0843fd4aec6e05d2d977e6f9fa /arch/xtensa | |
parent | 5584b4da7814af7d35a72d904140bf9c2a502d4e (diff) |
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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/platforms/xtfpga/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/platforms/xtfpga/setup.c b/arch/xtensa/platforms/xtfpga/setup.c index 71d61ca6a4af..237c36dc18b8 100644 --- a/arch/xtensa/platforms/xtfpga/setup.c +++ b/arch/xtensa/platforms/xtfpga/setup.c | |||
@@ -105,9 +105,9 @@ static void __init update_clock_frequency(struct device_node *node) | |||
105 | 105 | ||
106 | static int __init machine_setup(void) | 106 | static int __init machine_setup(void) |
107 | { | 107 | { |
108 | struct device_node *serial = NULL; | 108 | struct device_node *serial; |
109 | 109 | ||
110 | while ((serial = of_find_compatible_node(serial, NULL, "ns16550a"))) | 110 | for_each_compatible_node(serial, NULL, "ns16550a") |
111 | update_clock_frequency(serial); | 111 | update_clock_frequency(serial); |
112 | return 0; | 112 | return 0; |
113 | } | 113 | } |