Commit e49f1e20 authored by Wei Yongjun's avatar Wei Yongjun Committed by Benjamin Herrenschmidt

powerpc/82xx: Use for_each_compatible_node() macro

Use for_each_compatible_node() macro instead of open coding it.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 176ebf87
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment