mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
powerpc/82xx: Use for_each_compatible_node() macro
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>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
176ebf8736
commit
e49f1e203f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user