提交 e49f1e20 编写于 作者: W Wei Yongjun 提交者: Benjamin Herrenschmidt

powerpc/82xx: Use for_each_compatible_node() macro

Use for_each_compatible_node() macro instead of open coding it.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册