From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 22 Mar 2007 12:36:16 +1100 From: David Gibson To: Scott Wood Subject: Re: [PATCH 2/4] powerpc: Add device tree utility functions to zImage Message-ID: <20070322013616.GH2295@localhost.localdomain> References: <20070321063031.GB30422@localhost.localdomain> <20070321063150.04BA4DDE9F@ozlabs.org> <20070321215741.GA5540@ld0162-tx32.am.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070321215741.GA5540@ld0162-tx32.am.freescale.net> Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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