ARM: clps711x: Cleanup IRQ handling
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 15 May 2012 17:55:01 +0000 (21:55 +0400)
committerArnd Bergmann <arnd@arndb.de>
Tue, 15 May 2012 19:20:59 +0000 (21:20 +0200)
This patch contains two changes:
- Removed unused definitions from mach/irqs.h
- Do not mask interrupts in ack procedure, because we have separate
  intX_mask procedure for do it and actually these 2 functions are
  called sequentially

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-clps711x/common.c
arch/arm/mach-clps711x/include/mach/irqs.h

index b6dfd2f22cd405c0d96a2f6ddc34db68e928cbc1..c965fd8eb31a14de7478eaaea8a395ab3816bbc8 100644 (file)
@@ -66,12 +66,6 @@ static void int1_mask(struct irq_data *d)
 
 static void int1_ack(struct irq_data *d)
 {
-       u32 intmr1;
-
-       intmr1 = clps_readl(INTMR1);
-       intmr1 &= ~(1 << d->irq);
-       clps_writel(intmr1, INTMR1);
-
        switch (d->irq) {
        case IRQ_CSINT:  clps_writel(0, COEOI);  break;
        case IRQ_TC1OI:  clps_writel(0, TC1EOI); break;
@@ -108,12 +102,6 @@ static void int2_mask(struct irq_data *d)
 
 static void int2_ack(struct irq_data *d)
 {
-       u32 intmr2;
-
-       intmr2 = clps_readl(INTMR2);
-       intmr2 &= ~(1 << (d->irq - 16));
-       clps_writel(intmr2, INTMR2);
-
        switch (d->irq) {
        case IRQ_KBDINT: clps_writel(0, KBDEOI); break;
        }
index 30b7e97285a4c0b48cd721736d1dbc163223b643..14d215f8ca81265631659f22dd004e91dd08bf96 100644 (file)
@@ -35,7 +35,6 @@
 #define IRQ_SSEOTI                     15
 
 #define INT1_IRQS                      (0x0000fff0)
-#define INT1_ACK_IRQS                  (0x00004f10)
 
 /*
  * Interrupts from INTSR2
@@ -47,7 +46,5 @@
 #define IRQ_URXINT2                    (16+13) /* bit 13 */
 
 #define INT2_IRQS                      (0x30070000)
-#define INT2_ACK_IRQS                  (0x00010000)
-
-#define NR_IRQS                         30
 
+#define NR_IRQS                                30