Skip to content

Commit 331f9aa

Browse files
jhovoldMarc Zyngier
authored andcommitted
irqchip/gic-v3-mbi: 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 1e46e04 commit 331f9aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/irqchip/irq-gic-v3-mbi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,12 @@ static int mbi_allocate_domains(struct irq_domain *parent)
233233
struct irq_domain *nexus_domain, *pci_domain, *plat_domain;
234234
int err;
235235

236-
nexus_domain = irq_domain_create_tree(parent->fwnode,
237-
&mbi_domain_ops, NULL);
236+
nexus_domain = irq_domain_create_hierarchy(parent, 0, 0, parent->fwnode,
237+
&mbi_domain_ops, NULL);
238238
if (!nexus_domain)
239239
return -ENOMEM;
240240

241241
irq_domain_update_bus_token(nexus_domain, DOMAIN_BUS_NEXUS);
242-
nexus_domain->parent = parent;
243242

244243
err = mbi_allocate_pci_domain(nexus_domain, &pci_domain);
245244

0 commit comments

Comments
 (0)