Skip to content

Commit

Permalink
of/irq: of_irq_init: add check for parent equal to child node
Browse files Browse the repository at this point in the history
With the revert of "of/irq: of_irq_find_parent: check for parent equal to
child" (dc93728), we need another way to handle parent node equal
to the child node. This can simply be handled in of_irq_init by checking
for this condition.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
  • Loading branch information
Rob Herring committed Nov 29, 2011
1 parent caca6a0 commit d7fb6d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/of/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ void __init of_irq_init(const struct of_device_id *matches)

desc->dev = np;
desc->interrupt_parent = of_irq_find_parent(np);
if (desc->interrupt_parent == np)
desc->interrupt_parent = NULL;
list_add_tail(&desc->list, &intc_desc_list);
}

Expand Down

0 comments on commit d7fb6d0

Please sign in to comment.