fixes reset button on atheros platform, ar5312 gpio_irqs will be added later
[openwrt/openwrt.git] / target / linux / atheros / files / arch / mips / atheros / ar5312 / irq.c
index c5062bac48eb0e9daeceddc85739d6f9616d9e4a..0cbdc8ed22289d13693677ef7597855930394eda 100644 (file)
@@ -23,7 +23,9 @@
 #include <asm/time.h>
 #include <asm/irq.h>
 #include <asm/io.h>
-#include "../ar531x.h"
+
+#include <ar531x.h>
+#include <gpio.h>
 
 /*
  * Called when an interrupt is received, this function
@@ -62,8 +64,6 @@ asmlinkage void ar5312_irq_dispatch(void)
        } else if (pending & CAUSEF_IP7) {
                do_IRQ(AR531X_IRQ_CPU_CLOCK);
        }
-       else
-               do_IRQ(AR531X_IRQ_NONE);
 }
 
 
@@ -138,7 +138,7 @@ static irqreturn_t ar5312_ahb_proc_handler(int cpl, void *dev_id)
 
        printk("AHB interrupt: PROCADDR=0x%8.8x  PROC1=0x%8.8x  DMAADDR=0x%8.8x  DMA1=0x%8.8x\n",
                        procAddr, proc1, dmaAddr, dma1);
-               
+
        machine_restart("AHB error"); /* Catastrophic failure */
        return IRQ_HANDLED;
 }