[PATCH 3/4 v4] POWERPC: Add initial iomega StorCenter board port.

Stephen Rothwell sfr at canb.auug.org.au
Thu Jan 24 11:50:18 EST 2008


Hi Jon,

On Wed, 23 Jan 2008 12:42:50 -0600 Jon Loeliger <jdl at jdl.com> wrote:
>
> +++ b/arch/powerpc/platforms/embedded6xx/storcenter.c
> +static void __init storcenter_init_IRQ(void)
> +{
> +	struct mpic *mpic;
> +	struct device_node *dnp;
> +	const void *prop;
> +	int size;
> +	phys_addr_t paddr;
> +
> +	dnp = of_find_node_by_type(NULL, "open-pic");
> +	if (dnp == NULL)
> +		return;
> +
> +	prop = of_get_property(dnp, "reg", &size);
> +	if (prop == NULL)
> +		return;

You need an of_node_put(dnp) before you return.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080124/70d8ff0a/attachment.pgp>


More information about the Linuxppc-dev mailing list