diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-11 04:24:18 (GMT) |
---|---|---|
committer | Michael Ellerman <michael@ellerman.id.au> | 2013-04-18 03:03:50 (GMT) |
commit | 342ea00f457281660e120c3c6049df0ae2adc778 (patch) | |
tree | 2943bfd9bd1a5d6579ef669fcec6acbc6a968616 /arch/powerpc | |
parent | 8040bda31ab229e931d872a51c89ddeae4012b00 (diff) | |
download | linux-342ea00f457281660e120c3c6049df0ae2adc778.tar.xz |
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')
-rw-r--r-- | arch/powerpc/include/asm/parport.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/parport.h b/arch/powerpc/include/asm/parport.h index 6dc2577..a452968 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; |