[PATCH] powerpc: Remove device_node addrs/n_addr

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Jan 3 09:01:35 EST 2006


On Mon, 2006-01-02 at 14:15 +0100, Olaf Hering wrote:
>  On Tue, Dec 13, Benjamin Herrenschmidt wrote:
> 
> > The pre-parsed addrs/n_addrs fields in struct device_node are finally
> > gone. Remove the dodgy heuristics that did that parsing at boot and
> > remove the fields themselves since we now have a good replacement with
> > the new OF parsing code. This patch also fixes a bunch of drivers to use
> > the new code instead, so that at least pmac32, pseries, iseries and g5
> > defconfigs build.
> 
> > +++ linux-work/include/asm-powerpc/prom.h	2005-12-13 17:51:20.000000000 +1100
> 
> > @@ -120,8 +82,6 @@ struct device_node {
> >  	char	*type;
> >  	phandle	node;
> >  	phandle linux_phandle;
> > -	int	n_addrs;
> > -	struct	address_range *addrs;
> >  	int	n_intrs;
> >  	struct	interrupt_info *intrs;
> >  	char	*full_name;
> 
> Is this patch supposed to be complete? I will find references to n_addrs
> in arch/powerpc:
> 
> hydra_init, chrp_find_bridges, chrp_find_openpic, comment in
> of_finish_dynamic_node.

No, it's complete as far as powermac is concerned. I'll deal with the
remaining bits this week.

Ben.





More information about the Linuxppc-dev mailing list