diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2007-11-29 20:44:36 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-17 04:56:54 +0100 |
commit | 26cb7d8bbddc8338904b8810b860ccf052c761fa (patch) | |
tree | 24a183faa00bcee80453ca1fa65f414ddea8d141 /arch/powerpc/sysdev/mv64x60_udbg.c | |
parent | [POWERPC] Add of_find_matching_node() helper function (diff) | |
download | linux-26cb7d8bbddc8338904b8810b860ccf052c761fa.tar.xz linux-26cb7d8bbddc8338904b8810b860ccf052c761fa.zip |
[POWERPC] Use for_each macros in arch/powerpc/sysdev
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev/mv64x60_udbg.c')
-rw-r--r-- | arch/powerpc/sysdev/mv64x60_udbg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/mv64x60_udbg.c b/arch/powerpc/sysdev/mv64x60_udbg.c index 367e7b13ec00..35c77c7d0616 100644 --- a/arch/powerpc/sysdev/mv64x60_udbg.c +++ b/arch/powerpc/sysdev/mv64x60_udbg.c @@ -85,10 +85,10 @@ static void mv64x60_udbg_init(void) if (!stdout) return; - for (np = NULL; - (np = of_find_compatible_node(np, "serial", "marvell,mpsc")); ) + for_each_compatible_node(np, "serial", "marvell,mpsc") { if (np == stdout) break; + } of_node_put(stdout); if (!np) |