Skip to content

Commit d7fb6d0

Browse files
author
Rob Herring
committed
of/irq: of_irq_init: add check for parent equal to child node
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 <[email protected]> Tested-by: Pawel Moll <[email protected]> Tested-by: Stephen Warren <[email protected]>
1 parent caca6a0 commit d7fb6d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/of/irq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ void __init of_irq_init(const struct of_device_id *matches)
424424

425425
desc->dev = np;
426426
desc->interrupt_parent = of_irq_find_parent(np);
427+
if (desc->interrupt_parent == np)
428+
desc->interrupt_parent = NULL;
427429
list_add_tail(&desc->list, &intc_desc_list);
428430
}
429431

0 commit comments

Comments
 (0)