summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/parport.h
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-03-11 04:24:18 +0000
committerMichael Ellerman <michael@ellerman.id.au>2013-04-18 13:03:50 +1000
commit342ea00f457281660e120c3c6049df0ae2adc778 (patch)
tree2943bfd9bd1a5d6579ef669fcec6acbc6a968616 /arch/powerpc/include/asm/parport.h
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>
Diffstat (limited to 'arch/powerpc/include/asm/parport.h')
-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)
int count = 0;
int virq;
- for (np = NULL; (np = of_find_compatible_node(np,
- "parallel",
- "pnpPNP,400")) != NULL;) {
+ for_each_compatible_node(np, "parallel", "pnpPNP,400") {
prop = of_get_property(np, "reg", &propsize);
if (!prop || propsize > 6*sizeof(u32))
continue;