Skip to content

Commit

Permalink
powerpc/82xx: Use for_each_compatible_node() macro
Browse files Browse the repository at this point in the history
Use for_each_compatible_node() macro instead of open coding it.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Wei Yongjun authored and Benjamin Herrenschmidt committed Jan 10, 2013
1 parent 176ebf8 commit e49f1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/82xx/pq2.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ static void __init pq2_pci_add_bridge(struct device_node *np)

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

0 comments on commit e49f1e2

Please sign in to comment.