[PATCH] Add support for Analogue & Micro ASP837E board

Stephen Rothwell sfr at canb.auug.org.au
Tue May 6 16:11:10 EST 2008


Hi Bryan,

On Tue, 6 May 2008 03:28:13 +0100 Bryan O'Donoghue <bodonoghue at codehermit.ie> wrote:
>
> +static void __init asp834x_init_IRQ(void)
> +{
> +	struct device_node *np;
> +
> +	np = of_find_node_by_type(NULL, "ipic");
> +	if (!np)
> +		return;
> +
> +	ipic_init(np, 0);

You need an "of_node_put(np)" here to drop the reference gained in
"of_find_node_by_type".

> +static struct of_device_id asp8347_ids[] = {

Please make this __initdata.

-- 
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/20080506/5cfe6249/attachment.pgp>


More information about the Linuxppc-dev mailing list