irq: intc: remove unnecesary of_address_to_resource() call
authorFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 00:55:07 +0000 (17:55 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Sep 2014 00:55:07 +0000 (17:55 -0700)
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().

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/irqchip/irq-omap-intc.c

index 342e0ab..371ff5e 100644 (file)
@@ -363,7 +363,6 @@ void __init ti81xx_init_irq(void)
 static int __init intc_of_init(struct device_node *node,
                             struct device_node *parent)
 {
-       struct resource res;
        int ret;
 
        omap_nr_pending = 3;
@@ -372,11 +371,6 @@ static int __init intc_of_init(struct device_node *node,
        if (WARN_ON(!node))
                return -ENODEV;
 
-       if (of_address_to_resource(node, 0, &res)) {
-               WARN(1, "unable to get intc registers\n");
-               return -EINVAL;
-       }
-
        if (of_device_is_compatible(node, "ti,am33xx-intc")) {
                omap_nr_irqs = 128;
                omap_nr_pending = 4;