aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/mv64x60_pci.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2007-11-29 14:44:36 -0500
committerPaul Mackerras <paulus@samba.org>2008-01-16 22:56:54 -0500
commit26cb7d8bbddc8338904b8810b860ccf052c761fa (patch)
tree24a183faa00bcee80453ca1fa65f414ddea8d141 /arch/powerpc/sysdev/mv64x60_pci.c
parent283029d16a882539ab0027afd94ac52858d050b2 (diff)
[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_pci.c')
-rw-r--r--arch/powerpc/sysdev/mv64x60_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/mv64x60_pci.c b/arch/powerpc/sysdev/mv64x60_pci.c
index 6933f9c73b43..d21ab8fa4993 100644
--- a/arch/powerpc/sysdev/mv64x60_pci.c
+++ b/arch/powerpc/sysdev/mv64x60_pci.c
@@ -164,8 +164,8 @@ static int __init mv64x60_add_bridge(struct device_node *dev)
164 164
165void __init mv64x60_pci_init(void) 165void __init mv64x60_pci_init(void)
166{ 166{
167 struct device_node *np = NULL; 167 struct device_node *np;
168 168
169 while ((np = of_find_compatible_node(np, "pci", "marvell,mv64x60-pci"))) 169 for_each_compatible_node(np, "pci", "marvell,mv64x60-pci")
170 mv64x60_add_bridge(np); 170 mv64x60_add_bridge(np);
171} 171}