diff options
| -rw-r--r-- | arch/avr32/mach-at32ap/intc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/avr32/mach-at32ap/intc.c b/arch/avr32/mach-at32ap/intc.c index 994c4545e2b..d9270d64b4c 100644 --- a/arch/avr32/mach-at32ap/intc.c +++ b/arch/avr32/mach-at32ap/intc.c | |||
| @@ -34,12 +34,12 @@ extern struct platform_device at32_intc0_device; | |||
| 34 | * TODO: We may be able to implement mask/unmask by setting IxM flags | 34 | * TODO: We may be able to implement mask/unmask by setting IxM flags |
| 35 | * in the status register. | 35 | * in the status register. |
| 36 | */ | 36 | */ |
| 37 | static void intc_mask_irq(unsigned int irq) | 37 | static void intc_mask_irq(struct irq_data *d) |
| 38 | { | 38 | { |
| 39 | 39 | ||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | static void intc_unmask_irq(unsigned int irq) | 42 | static void intc_unmask_irq(struct irq_data *d) |
| 43 | { | 43 | { |
| 44 | 44 | ||
| 45 | } | 45 | } |
| @@ -47,8 +47,8 @@ static void intc_unmask_irq(unsigned int irq) | |||
| 47 | static struct intc intc0 = { | 47 | static struct intc intc0 = { |
| 48 | .chip = { | 48 | .chip = { |
| 49 | .name = "intc", | 49 | .name = "intc", |
| 50 | .mask = intc_mask_irq, | 50 | .irq_mask = intc_mask_irq, |
| 51 | .unmask = intc_unmask_irq, | 51 | .irq_unmask = intc_unmask_irq, |
| 52 | }, | 52 | }, |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| @@ -57,7 +57,6 @@ static struct intc intc0 = { | |||
| 57 | */ | 57 | */ |
| 58 | asmlinkage void do_IRQ(int level, struct pt_regs *regs) | 58 | asmlinkage void do_IRQ(int level, struct pt_regs *regs) |
| 59 | { | 59 | { |
| 60 | struct irq_desc *desc; | ||
| 61 | struct pt_regs *old_regs; | 60 | struct pt_regs *old_regs; |
| 62 | unsigned int irq; | 61 | unsigned int irq; |
| 63 | unsigned long status_reg; | 62 | unsigned long status_reg; |
| @@ -69,8 +68,7 @@ asmlinkage void do_IRQ(int level, struct pt_regs *regs) | |||
| 69 | irq_enter(); | 68 | irq_enter(); |
| 70 | 69 | ||
| 71 | irq = intc_readl(&intc0, INTCAUSE0 - 4 * level); | 70 | irq = intc_readl(&intc0, INTCAUSE0 - 4 * level); |
| 72 | desc = irq_desc + irq; | 71 | generic_handle_irq(irq); |
| 73 | desc->handle_irq(irq, desc); | ||
| 74 | 72 | ||
| 75 | /* | 73 | /* |
| 76 | * Clear all interrupt level masks so that we may handle | 74 | * Clear all interrupt level masks so that we may handle |
