From 526e4451da1ff70dc8130c5c5817914ca212ea15 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Mon, 11 Mar 2013 04:24:18 +0000 Subject: [PATCH] --- yaml --- r: 370751 b: refs/heads/master c: 342ea00f457281660e120c3c6049df0ae2adc778 h: refs/heads/master i: 370749: 32b41b18967d745b331a09ea75d412945bca810d 370747: fd57a511c118b9b91194cc99519a2c612d1dad73 370743: 39185d34647ec523f0bd04387acf8b7ccd647150 370735: 2622a3ffdf63ea26b5d755ef8a5431a3c1067dee 370719: 8a2ae1ed74e93ea19cdcdb65773e5f31a0343ca9 370687: 14862cc8ab636811fffef06b954b6b45fdda3e79 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/parport.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index bc14025a5756..e2f507e27c62 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8040bda31ab229e931d872a51c89ddeae4012b00 +refs/heads/master: 342ea00f457281660e120c3c6049df0ae2adc778 diff --git a/trunk/arch/powerpc/include/asm/parport.h b/trunk/arch/powerpc/include/asm/parport.h index 6dc2577932b1..a452968b29ea 100644 --- a/trunk/arch/powerpc/include/asm/parport.h +++ b/trunk/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;