powerpc/mpc5200: Make internal 5200 PIC the default interrupt controller
authorGrant Likely <grant.likely@secretlab.ca>
Sun, 21 Dec 2008 09:54:27 +0000 (02:54 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 21 Dec 2008 09:54:27 +0000 (02:54 -0700)
The MPC5200 internal interrupt controller setup function needs to set
the default interrupt controller when it is called.  Without this
irq_create_of_mapping() cannot be called without first determining
the pointer to the irq controller (ie. call with controller = NULL).

Reported-by: Steven Cavanagh <scavanagh@secretlab.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/52xx/mpc52xx_pic.c

index c2fa60e0c4217963328ecd251ad570fa4b3e3a8c..72865e8e4b5124b1567c4546d9cee99e499311e8 100644 (file)
@@ -547,6 +547,8 @@ void __init mpc52xx_init_irq(void)
        if (!mpc52xx_irqhost)
                panic(__FILE__ ": Cannot allocate the IRQ host\n");
 
+       irq_set_default_host(mpc52xx_irqhost);
+
        pr_info("MPC52xx PIC is up and running!\n");
 }