[PATCH 3/7] Basic Freescale MPC512x support
Stephen Rothwell
sfr at canb.auug.org.au
Wed Jan 9 13:36:44 EST 2008
On Tue, 8 Jan 2008 09:01:29 -0700 John Rigby <jrigby at freescale.com> wrote:
>
> +++ b/arch/powerpc/platforms/512x/mpc5121_ads.c
> +#include <asm/of_platform.h>
I see I don't need to comment on this :-)
> +static void __init mpc5121_ads_init_IRQ(void)
> +{
> + struct device_node *np;
> +
> + np = of_find_node_by_type(NULL, "ipic");
> + if (!np)
> + return;
> +
> + ipic_init(np, 0);
> +
> + /*
> + * Initialize the default interrupt mapping priorities,
> + * in case the boot rom changed something on us.
> + */
> + ipic_set_default_priority();
> +}
This needs an of_node_put(np) somewhere.
--
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/20080109/0cc7ea8e/attachment.pgp>
More information about the Linuxppc-dev
mailing list