[PATCH 2/4] powerpc: Add device tree utility functions to zImage
David Gibson
david at gibson.dropbear.id.au
Thu Mar 22 12:36:16 EST 2007
On Wed, Mar 21, 2007 at 04:57:41PM -0500, Scott Wood wrote:
> On Wed, Mar 21, 2007 at 05:31:49PM +1100, David Gibson wrote:
> > +int dt_path_getprop(const char *path, const char *name, void *buf, int bufsize)
> > +{
> > + void *devp = finddevice;
> > +
> > + if (devp)
> > + return getprop(devp, name, buf, bufsize);
> > + return -1;
> > +}
>
> Should be "void *devp = finddevice(path);".
Eep. Yes.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
More information about the Linuxppc-dev
mailing list