Hi Paul,

On Wed,  9 Jan 2008 00:49:30 -0500 Paul Gortmaker <[EMAIL PROTECTED]> wrote:
>
> +static void __init sbc834x_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.

> +static struct of_device_id sbc834x_ids[] = {

__initdata

> +static int __init sbc834x_declare_of_platform_devices(void)
> +{
> +     if (!machine_is(sbc834x))
> +             return 0;
> +
> +     of_platform_bus_probe(NULL, sbc834x_ids, NULL);
> +     return 0;
> +}
> +device_initcall(sbc834x_declare_of_platform_devices);

machine_device_initcall(sbc834x, ...

-- 
Cheers,
Stephen Rothwell                    [EMAIL PROTECTED]
http://www.canb.auug.org.au/~sfr/

Attachment: pgpqtBsvlrjSc.pgp
Description: PGP signature

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to