aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-03-11 00:24:18 -0400
committerMichael Ellerman <michael@ellerman.id.au>2013-04-17 23:03:50 -0400
commit342ea00f457281660e120c3c6049df0ae2adc778 (patch)
tree2943bfd9bd1a5d6579ef669fcec6acbc6a968616
parent8040bda31ab229e931d872a51c89ddeae4012b00 (diff)
powerpc: 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: Michael Ellerman <michael@ellerman.id.au>
-rw-r--r--arch/powerpc/include/asm/parport.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/parport.h b/arch/powerpc/include/asm/parport.h
index 6dc2577932b1..a452968b29ea 100644
--- a/arch/powerpc/include/asm/parport.h
+++ b/arch/powerpc/include/asm/parport.h
@@ -21,9 +21,7 @@ static int parport_pc_find_nonpci_ports (int autoirq, int autodma)
21 int count = 0; 21 int count = 0;
22 int virq; 22 int virq;
23 23
24 for (np = NULL; (np = of_find_compatible_node(np, 24 for_each_compatible_node(np, "parallel", "pnpPNP,400") {
25 "parallel",
26 "pnpPNP,400")) != NULL;) {
27 prop = of_get_property(np, "reg", &propsize); 25 prop = of_get_property(np, "reg", &propsize);
28 if (!prop || propsize > 6*sizeof(u32)) 26 if (!prop || propsize > 6*sizeof(u32))
29 continue; 27 continue;