[PATCH v4 4/7] Add support for 750CL Holly board

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed May 9 09:47:36 EST 2007


> > +
> > > +	tsi_pic = of_find_node_by_type(NULL, "open-pic");
> > > +	if (tsi_pic) {
> > > +		unsigned int size;
> > > +		const void *prop = of_get_property(tsi_pic, "reg", &size);
> > > +		mpic_paddr = of_translate_address(tsi_pic, prop);
> > > +	}
> > 
> > You don't actually need 'size' there; it's legal to pass NULL to
> > of_get_property.

Probably easier to use of_address_to_resource

Ben.





More information about the Linuxppc-dev mailing list