Skip to content

Commit e6e8cd6

Browse files
jhovoldMarc Zyngier
authored andcommitted
irqchip/gic-v2m: Use irq_domain_create_hierarchy()
Use the irq_domain_create_hierarchy() helper to create the hierarchical domain, which both serves as documentation and avoids poking at irqdomain internals. Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Hsin-Yi Wang <[email protected]> Tested-by: Mark-PK Tsai <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6c88923 commit e6e8cd6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/irqchip/irq-gic-v2m.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,14 @@ static __init int gicv2m_allocate_domains(struct irq_domain *parent)
287287
if (!v2m)
288288
return 0;
289289

290-
inner_domain = irq_domain_create_tree(v2m->fwnode,
291-
&gicv2m_domain_ops, v2m);
290+
inner_domain = irq_domain_create_hierarchy(parent, 0, 0, v2m->fwnode,
291+
&gicv2m_domain_ops, v2m);
292292
if (!inner_domain) {
293293
pr_err("Failed to create GICv2m domain\n");
294294
return -ENOMEM;
295295
}
296296

297297
irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);
298-
inner_domain->parent = parent;
299298
pci_domain = pci_msi_create_irq_domain(v2m->fwnode,
300299
&gicv2m_msi_domain_info,
301300
inner_domain);

0 commit comments

Comments
 (0)