ARC: clockevent: DT based probe
[cascardo/linux.git] / arch / arc / kernel / intc-compact.c
index 224d1c3..d31bc64 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/irqchip.h>
 #include <asm/irq.h>
 
+#define TIMER0_IRQ     3       /* Fixed by ISA */
+
 /*
  * Early Hardware specific Interrupt setup
  * -Platform independent, needed for each CPU (not foldable into init_IRQ)
@@ -79,8 +81,9 @@ static struct irq_chip onchip_intc = {
 static int arc_intc_domain_map(struct irq_domain *d, unsigned int irq,
                               irq_hw_number_t hw)
 {
-       switch (irq) {
+       switch (hw) {
        case TIMER0_IRQ:
+               irq_set_percpu_devid(irq);
                irq_set_chip_and_handler(irq, &onchip_intc, handle_percpu_irq);
                break;
        default: