On Fri, 26 Oct 2007 16:54:43 +1000 (EST) Michael Ellerman <[EMAIL PROTECTED]> wrote: > > +++ b/arch/powerpc/platforms/pseries/eeh.c > @@ -841,11 +841,8 @@ void eeh_restore_bars(struct pci_dn *pdn) > if ((pdn->eeh_mode & EEH_MODE_SUPPORTED) && !IS_BRIDGE(pdn->class_code)) > __restore_bars (pdn); > > - dn = pdn->node->child; > - while (dn) { > + for (dn = NULL; (dn = of_get_next_child(pdn->node, dn));)
Just wondering if we need #define for_each_child_node(dn, parent) \ for (dn = of_get_next_child(parent, NULL); dn; \ dn = of_get_next_child(parent, dn)) -- Cheers, Stephen Rothwell [EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/
pgpq2VFtKt77b.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev