Re: [PATCH 2/3] mtd: Factor out OF partition support from the NOR driver.

2008-01-15 Thread Stephen Rothwell
On Tue, 15 Jan 2008 17:43:06 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > > Stephen Rothwell wrote: > >> + nr_parts = 0; > >> + for (pp = node->child; pp; pp = pp->sibling) > > > > for_each_child_of_node(node, pp) > > "for_each_child_of_node" is only in Paul's tree, but this has to go via

Re: [PATCH 2/3] mtd: Factor out OF partition support from the NOR driver.

2008-01-15 Thread Scott Wood
Stephen Rothwell wrote: >> +nr_parts = 0; >> +for (pp = node->child; pp; pp = pp->sibling) > > for_each_child_of_node(node, pp) "for_each_child_of_node" is only in Paul's tree, but this has to go via mtd. Plus, I'm just moving the code; it's not new. -Scott ___

Re: [PATCH 2/3] mtd: Factor out OF partition support from the NOR driver.

2008-01-13 Thread Stephen Rothwell
Hi Scott, [Corrected list address.] On Fri, 11 Jan 2008 14:43:16 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > > +++ b/drivers/mtd/ofpart.c > +int __devinit of_mtd_parse_partitions(struct device *dev, > + nr_parts = 0; > + for (pp = node->child; pp; pp = pp->sibling) for_each_c

Re: [PATCH 2/3] mtd: Factor out OF partition support from the NOR driver.

2008-01-13 Thread Stephen Rothwell
Hi Scott, On Fri, 11 Jan 2008 14:43:16 -0600 Scott Wood <[EMAIL PROTECTED]> wrote: > > +++ b/drivers/mtd/ofpart.c > +int __devinit of_mtd_parse_partitions(struct device *dev, > + nr_parts = 0; > + for (pp = node->child; pp; pp = pp->sibling) for_each_child_of_node(node, pp) > +

[PATCH 2/3] mtd: Factor out OF partition support from the NOR driver.

2008-01-11 Thread Scott Wood
Signed-off-by: Scott Wood <[EMAIL PROTECTED]> --- drivers/mtd/Kconfig|8 drivers/mtd/Makefile |1 + drivers/mtd/maps/physmap_of.c | 89 drivers/mtd/ofpart.c | 70 +++ include/linu