sh: intc: Allocate subgroup virq backing desc directly.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 24 May 2012 10:24:18 +0000 (19:24 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 13 Jun 2012 03:08:36 +0000 (12:08 +0900)
This switches to using irq_alloc_desc() directly for subgroup IRQs.
We still need to call activate_irq() on these in order to make them
requestable, at least up until these get moved in to their own irq
domain..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/intc/virq.c

index 93cec21e788bdb7b4024fa5237b9d7a8801c1333..f30ac9354ff248f316fb96a26d534884faa8bf5d 100644 (file)
@@ -219,12 +219,14 @@ restart:
                if (radix_tree_deref_retry(entry))
                        goto restart;
 
-               irq = create_irq();
+               irq = irq_alloc_desc(numa_node_id());
                if (unlikely(irq < 0)) {
                        pr_err("no more free IRQs, bailing..\n");
                        break;
                }
 
+               activate_irq(irq);
+
                pr_info("Setting up a chained VIRQ from %d -> %d\n",
                        irq, entry->pirq);