Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7fb6d0a authored by Rob Herring's avatar Rob Herring
Browse files

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" (dc937280), 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: default avatarRob Herring <rob.herring@calxeda.com>
Tested-by: default avatarPawel Moll <pawel.moll@arm.com>
Tested-by: default avatarStephen Warren <swarren@nvidia.com>
parent caca6a03
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
	}