[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>
This commit is contained in:
Cyrill Gorcunov
2007-11-30 06:44:36 +11:00
committed by Paul Mackerras
parent 283029d16a
commit 26cb7d8bbd
6 changed files with 25 additions and 38 deletions

View File

@@ -164,8 +164,8 @@ static int __init mv64x60_add_bridge(struct device_node *dev)
void __init mv64x60_pci_init(void)
{
struct device_node *np = NULL;
struct device_node *np;
while ((np = of_find_compatible_node(np, "pci", "marvell,mv64x60-pci")))
for_each_compatible_node(np, "pci", "marvell,mv64x60-pci")
mv64x60_add_bridge(np);
}