mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 46/50] genirq: ARM: Convert at91rm9200 to generic irq handling
@ 2006-05-17  0:18 Ingo Molnar
  0 siblings, 0 replies; only message in thread
From: Ingo Molnar @ 2006-05-17  0:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: Thomas Gleixner, Benjamin Herrenschmidt, Russell King,
	Andrew Morton, Christoph Hellwig, linux-arm-kernel

From: Thomas Gleixner <tglx@linutronix.de>

Fixup the conversion to generic irq subsystem.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/arm/mach-at91rm9200/gpio.c |   12 ++++++------
 arch/arm/mach-at91rm9200/time.c |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

Index: linux-genirq.q/arch/arm/mach-at91rm9200/gpio.c
===================================================================
--- linux-genirq.q.orig/arch/arm/mach-at91rm9200/gpio.c
+++ linux-genirq.q/arch/arm/mach-at91rm9200/gpio.c
@@ -261,21 +261,21 @@ static void gpio_irq_handler(unsigned ir
 	void __iomem	*pio;
 	u32		isr;
 
-	pio = desc->base;
+	pio = get_irq_chip_data(irq);
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->ack(irq);
+	desc->handler->ack(irq);
 	for (;;) {
 		isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR);
 		if (!isr)
 			break;
 
-		pin = (unsigned) desc->data;
+		pin = (unsigned) get_irq_data(irq);
 		gpio = &irq_desc[pin];
 
 		while (isr) {
 			if (isr & 1) {
-				if (unlikely(gpio->disable_depth)) {
+				if (unlikely(gpio->depth)) {
 					/*
 					 * The core ARM interrupt handler lazily disables IRQs so
 					 * another IRQ must be generated before it actually gets
@@ -284,14 +284,14 @@ static void gpio_irq_handler(unsigned ir
 					gpio_irq_mask(pin);
 				}
 				else
-					gpio->handle(pin, gpio, regs);
+					desc_handle_irq(pin, gpio, regs);
 			}
 			pin++;
 			gpio++;
 			isr >>= 1;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->handler->unmask(irq);
 	/* now it may re-trigger */
 }
 
Index: linux-genirq.q/arch/arm/mach-at91rm9200/time.c
===================================================================
--- linux-genirq.q.orig/arch/arm/mach-at91rm9200/time.c
+++ linux-genirq.q/arch/arm/mach-at91rm9200/time.c
@@ -22,13 +22,13 @@
 #include <linux/config.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
+#include <linux/irq.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/time.h>
 
 #include <asm/hardware.h>
 #include <asm/io.h>
-#include <asm/irq.h>
 #include <asm/mach/time.h>
 
 /*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-17  0:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-17  0:18 [patch 46/50] genirq: ARM: Convert at91rm9200 to generic irq handling Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®