summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/82xx/pq2.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-12-03 19:20:31 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-01-10 17:00:51 +1100
commite49f1e203f3a66dd2982bcd8695e6f4a4f89f876 (patch)
treede601572654f3ec8d760b50de3d136d1a3c9d882 /arch/powerpc/platforms/82xx/pq2.c
parent176ebf8736ee87e3bac4b4a8cbd95a5ca18dbec7 (diff)
downloadblackbird-op-linux-e49f1e203f3a66dd2982bcd8695e6f4a4f89f876.tar.gz
blackbird-op-linux-e49f1e203f3a66dd2982bcd8695e6f4a4f89f876.zip
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>
Diffstat (limited to 'arch/powerpc/platforms/82xx/pq2.c')
-rw-r--r--arch/powerpc/platforms/82xx/pq2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/82xx/pq2.c b/arch/powerpc/platforms/82xx/pq2.c
index fb94d10e5a4d..fc8b2d6a7d8d 100644
--- a/arch/powerpc/platforms/82xx/pq2.c
+++ b/arch/powerpc/platforms/82xx/pq2.c
@@ -71,11 +71,11 @@ err:
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
OpenPOWER on IntegriCloud