summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/irq.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-09-08 17:54:34 -0700
committerTony Lindgren <tony@atomide.com>2014-09-11 13:03:34 -0700
commit421b090c83280f9f47d7c2532a6a0ba35446d6b1 (patch)
tree78b8771d2ed7928a2f0dcd90f40274402b63bf57 /arch/arm/mach-omap2/irq.c
parent71be00c90aba446779ea35a9740973a9be594257 (diff)
arm: omap: irq: add a global omap_nr_irqs variable
this will cache number of irqs. Also in preparation for removal of irq_banks array. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/irq.c')
-rw-r--r--arch/arm/mach-omap2/irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index 652c15bff176..82b8d383ab9c 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -70,6 +70,7 @@ static struct omap_irq_bank {
static struct irq_domain *domain;
static void __iomem *omap_irq_base;
+static int omap_nr_irqs = 96;
/* Structure to save interrupt controller context */
struct omap3_intc_regs {
@@ -170,6 +171,8 @@ static void __init omap_init_irq(u32 base, int nr_irqs,
if (WARN_ON(!omap_irq_base))
return;
+ omap_nr_irqs = nr_irqs;
+
irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0);
if (irq_base < 0) {
pr_warn("Couldn't allocate IRQ numbers\n");