mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 03:51:48 +00:00
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>
This commit is contained in:
parent
8040bda31a
commit
342ea00f45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user