Skip to content

Commit

Permalink
irqchip: omap-intc: remove unnecesary of_address_to_resource() call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi authored and Tony Lindgren committed Sep 16, 2014
1 parent 503b8d1 commit 8bb3b37
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/irqchip/irq-omap-intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,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;
Expand All @@ -371,11 +370,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;
Expand Down

0 comments on commit 8bb3b37

Please sign in to comment.