diff options
author | Felipe Balbi <balbi@ti.com> | 2014-09-15 17:15:05 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-09-16 17:45:00 -0400 |
commit | 8bb3b375c8837ea73740883a90b1d7719b2653cc (patch) | |
tree | e798adb1feee131c192220c05efa5bf795d3d3c4 | |
parent | 503b8d12e7462df0aea9b31ab65ac17b538540c9 (diff) |
irqchip: omap-intc: remove unnecesary of_address_to_resource() call
of_iomap(), which is called from omap_init_irq_of(),
already takes care of making sure we have a valid
resource to deal with. Because of that, we can
safely remove our explicit call to of_address_to_resource().
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | drivers/irqchip/irq-omap-intc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/irqchip/irq-omap-intc.c b/drivers/irqchip/irq-omap-intc.c index f4d562ee3f29..e97b53539386 100644 --- a/drivers/irqchip/irq-omap-intc.c +++ b/drivers/irqchip/irq-omap-intc.c | |||
@@ -362,7 +362,6 @@ void __init ti81xx_init_irq(void) | |||
362 | static int __init intc_of_init(struct device_node *node, | 362 | static int __init intc_of_init(struct device_node *node, |
363 | struct device_node *parent) | 363 | struct device_node *parent) |
364 | { | 364 | { |
365 | struct resource res; | ||
366 | int ret; | 365 | int ret; |
367 | 366 | ||
368 | omap_nr_pending = 3; | 367 | omap_nr_pending = 3; |
@@ -371,11 +370,6 @@ static int __init intc_of_init(struct device_node *node, | |||
371 | if (WARN_ON(!node)) | 370 | if (WARN_ON(!node)) |
372 | return -ENODEV; | 371 | return -ENODEV; |
373 | 372 | ||
374 | if (of_address_to_resource(node, 0, &res)) { | ||
375 | WARN(1, "unable to get intc registers\n"); | ||
376 | return -EINVAL; | ||
377 | } | ||
378 | |||
379 | if (of_device_is_compatible(node, "ti,am33xx-intc")) { | 373 | if (of_device_is_compatible(node, "ti,am33xx-intc")) { |
380 | omap_nr_irqs = 128; | 374 | omap_nr_irqs = 128; |
381 | omap_nr_pending = 4; | 375 | omap_nr_pending = 4; |