Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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