[patch 17/23] arm: at91: Cleanup irq chip
From: Thomas Gleixner <hidden>
Date: 2011-03-27 15:48:00
Also in:
lkml
On Sun, 27 Mar 2011, Sergei Shtylyov wrote:
Hello. On 26-03-2011 0:03, Thomas Gleixner wrote:quoted
quoted
Avoid the whole lazy disable dance in the demux handler by providing a irq_disable() callback.quoted
quoted
Use the proper accessor functions and tidy up gpio_irq_handler()quoted
quoted
Signed-off-by: Thomas Gleixner<redacted>[...]quoted
quoted
Index: linux-2.6-tip/arch/arm/mach-at91/gpio.c ===================================================================--- linux-2.6-tip.orig/arch/arm/mach-at91/gpio.c +++ linux-2.6-tip/arch/arm/mach-at91/gpio.c[...]quoted
quoted
@@ -384,16 +385,14 @@ static struct irq_chip gpio_irqchip = { static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) { unsigned pin; - struct irq_desc *gpio; - struct at91_gpio_chip *at91_gpio; - void __iomem *pio; + struct irq_data *idata = irq_desc_get_irq_data(desc); + struct irq_chip *chip = irq_data_get_chip(data); + struct at91_gpio_chip *at91_gpio = irq_data_get_chip_data(data);quoted
Sorry, needs to bequoted
+ struct at91_gpio_chip *at91_gpio = irq_data_get_irq_chip_data(data);quoted
Will fix and resend.You also don't have 'data' defined anywhere, maybe you meant '?data'?
I know, the compiler already slapped me.