mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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" (dc93728084), 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]>
This commit is contained in:
parent
caca6a03d3
commit
d7fb6d0adb
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue