[PATCH 2/4] powerpc: Add device tree utility functions to zImage

Scott Wood scottwood at freescale.com
Thu Mar 22 08:57:41 EST 2007


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);".

-Scott



More information about the Linuxppc-dev mailing list