projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8040bda
)
powerpc: use for_each_compatible_node() macro
author
Wei Yongjun
<
[email protected]
>
Mon, 11 Mar 2013 04:24:18 +0000
(
04:24
+0000)
committer
Michael Ellerman
<
[email protected]
>
Thu, 18 Apr 2013 03:03:50 +0000
(13:03 +1000)
Use for_each_compatible_node() macro instead of open coding it.
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Michael Ellerman <
[email protected]
>
arch/powerpc/include/asm/parport.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/parport.h
b/arch/powerpc/include/asm/parport.h
index 6dc2577932b13cc0694fa4c6b14942695a036379..a452968b29ea9d9fead23f883cf3d255bf9bbe9e 100644
(file)
--- 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;