Skip to contentSkip to conversation

powerpc/5200: Make internal 5200 PIC the default interrupt controller

PATCH New Grant Likely 1 participant 1 message Dec 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/5200: Make internal 5200 PIC the default interrupt controller

From: Grant Likely <[email protected]>

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).

---

 arch/powerpc/platforms/52xx/mpc52xx_pic.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/platforms/52xx/mpc52xx_pic.c +2 -0
index c2fa60e..72865e8 100644
@@ -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");
 }