| Submitter | Wei Yongjun |
|---|---|
| Date | March 11, 2013, 2:24 p.m. |
| Message ID | <CAPgLHd_CZXucALyD4JrDsA9ffYFrcufTyw-Nh0o2sAjg10YsvA@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/226564/ |
| State | Accepted |
| Commit | 342ea00f457281660e120c3c6049df0ae2adc778 |
| Delegated to: | Michael Ellerman |
| Headers | show |
Comments
Patch
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;