summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorWei Yongjun2013-03-11 05:24:18 +0100
committerMichael Ellerman2013-04-18 05:03:50 +0200
commit342ea00f457281660e120c3c6049df0ae2adc778 (patch)
tree2943bfd9bd1a5d6579ef669fcec6acbc6a968616 /arch/powerpc/include/asm
parentpowerpc: place EXPORT_SYMBOL macro right after declaration (diff)
downloadkernel-qcow2-linux-342ea00f457281660e120c3c6049df0ae2adc778.tar.gz
kernel-qcow2-linux-342ea00f457281660e120c3c6049df0ae2adc778.tar.xz
kernel-qcow2-linux-342ea00f457281660e120c3c6049df0ae2adc778.zip
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')
-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;