aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/irq.c')
-rw-r--r--arch/arm/mach-omap2/irq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index fdc4303be563..74d77e008025 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -261,7 +261,7 @@ int __init omap_intc_of_init(struct device_node *node,
261 struct device_node *parent) 261 struct device_node *parent)
262{ 262{
263 struct resource res; 263 struct resource res;
264 u32 nr_irqs = 96; 264 u32 nr_irq = 96;
265 265
266 if (WARN_ON(!node)) 266 if (WARN_ON(!node))
267 return -ENODEV; 267 return -ENODEV;
@@ -271,10 +271,10 @@ int __init omap_intc_of_init(struct device_node *node,
271 return -EINVAL; 271 return -EINVAL;
272 } 272 }
273 273
274 if (of_property_read_u32(node, "ti,intc-size", &nr_irqs)) 274 if (of_property_read_u32(node, "ti,intc-size", &nr_irq))
275 pr_warn("unable to get intc-size, default to %d\n", nr_irqs); 275 pr_warn("unable to get intc-size, default to %d\n", nr_irq);
276 276
277 omap_init_irq(res.start, nr_irqs, of_node_get(node)); 277 omap_init_irq(res.start, nr_irq, of_node_get(node));
278 278
279 return 0; 279 return 0;
280} 280}