[PATCH] powerpc/8xx: Fix build breakage with sparse irq changes

Benjamin Herrenschmidt benh at kernel.crashing.org
Fri Oct 30 17:19:57 EST 2009


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---

Sticking that on top of my -next branch

diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c b/arch/powerpc/platforms/8xx/m8xx_setup.c
index 385acfc..242954c 100644
--- a/arch/powerpc/platforms/8xx/m8xx_setup.c
+++ b/arch/powerpc/platforms/8xx/m8xx_setup.c
@@ -222,7 +222,7 @@ static void cpm_cascade(unsigned int irq, struct irq_desc *desc)
 	int cascade_irq;
 
 	if ((cascade_irq = cpm_get_irq()) >= 0) {
-		struct irq_desc *cdesc = irq_desc + cascade_irq;
+		struct irq_desc *cdesc = irq_to_desc(cascade_irq);
 
 		generic_handle_irq(cascade_irq);
 		cdesc->chip->eoi(cascade_irq);
-- 
1.6.1.2.14.gf26b5





More information about the Linuxppc-dev mailing list