ARM: OMAP2+: fix naming collision of variable nr_irqs
Using nr_irqs as local variable name triggers the sparse warning.. ./arch/arm/mach-omap2/irq.c:265:6: warning: symbol 'nr_irqs' shadows an earlier one ./linux/include/linux/irqnr.h:26:12: originally declared here Signed-off-by: Venkatraman S <svenkatr@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:

committed by
Tony Lindgren

parent
d3ada72ee3
commit
b56f2cb71a
@@ -261,7 +261,7 @@ int __init omap_intc_of_init(struct device_node *node,
|
||||
struct device_node *parent)
|
||||
{
|
||||
struct resource res;
|
||||
u32 nr_irqs = 96;
|
||||
u32 nr_irq = 96;
|
||||
|
||||
if (WARN_ON(!node))
|
||||
return -ENODEV;
|
||||
@@ -271,10 +271,10 @@ int __init omap_intc_of_init(struct device_node *node,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (of_property_read_u32(node, "ti,intc-size", &nr_irqs))
|
||||
pr_warn("unable to get intc-size, default to %d\n", nr_irqs);
|
||||
if (of_property_read_u32(node, "ti,intc-size", &nr_irq))
|
||||
pr_warn("unable to get intc-size, default to %d\n", nr_irq);
|
||||
|
||||
omap_init_irq(res.start, nr_irqs, of_node_get(node));
|
||||
omap_init_irq(res.start, nr_irq, of_node_get(node));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user