Skip to contentSkip to conversation

PPC cleanup: 82xx - do use for_each macro

PATCH In review Cyrill Gorcunov 1 participant 1 message Nov 29, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 PPC cleanup: 82xx - do use for_each macro

From: Cyrill Gorcunov <[email protected]>

---

 arch/powerpc/platforms/82xx/pq2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/82xx/pq2.c +2 -2
index a497cba..9e74393 100644
@@ -72,11 +72,11 @@ err:
 
 void __init pq2_init_pci(void)
 {
-	struct device_node *np = NULL;
+	struct device_node *np;
 
 	ppc_md.pci_exclude_device = pq2_pci_exclude_device;
 
-	while ((np = of_find_compatible_node(np, NULL, "fsl,pq2-pci")))
+	for_each_compatible_node(np, NULL, "fsl,pq2-pci")
 		pq2_pci_add_bridge(np);
 }
 #endif
Signature · 1 line
1.5.3.5