lib: utils/irqchip: Initialize all matching irqchip DT nodes
authorAnup Patel <anup.patel@wdc.com>
Tue, 12 May 2020 09:29:59 +0000 (14:59 +0530)
committerAnup Patel <anup@brainfault.org>
Sat, 23 May 2020 05:06:39 +0000 (10:36 +0530)
commitd30bb684481b6be642a0eaa9e7f0778d6519cc15
tree67178e797243d465a3e1e318dcaeaf09f7fb7947
parent2c685c214f2815c12f9d70422d85daa7f48003cf
lib: utils/irqchip: Initialize all matching irqchip DT nodes

We can have multiple matching DT nodes of the same FDT irqchip
driver so in this case we should call cold_init() for all matching
DT nodes instead of just first matching DT node.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/utils/irqchip/fdt_irqchip.c
lib/utils/irqchip/fdt_irqchip_plic.c