projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e46e04
)
irqchip/gic-v3-mbi: Use irq_domain_create_hierarchy()
author
Johan Hovold
<johan+linaro@kernel.org>
Mon, 13 Feb 2023 10:42:59 +0000
(11:42 +0100)
committer
Marc Zyngier
<maz@kernel.org>
Mon, 13 Feb 2023 19:31:25 +0000
(19:31 +0000)
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é <philmd@linaro.org>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20230213104302.17307-18-johan+linaro@kernel.org
drivers/irqchip/irq-gic-v3-mbi.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-gic-v3-mbi.c
b/drivers/irqchip/irq-gic-v3-mbi.c
index e1efdec9e9acfb2e69a9b0015e4c156a8cf753f9..dbb8b1efda44cc1dba37ec84841516fe874d04e8 100644
(file)
--- a/
drivers/irqchip/irq-gic-v3-mbi.c
+++ b/
drivers/irqchip/irq-gic-v3-mbi.c
@@
-233,13
+233,12
@@
static int mbi_allocate_domains(struct irq_domain *parent)
struct irq_domain *nexus_domain, *pci_domain, *plat_domain;
int err;
- nexus_domain = irq_domain_create_
tree(
parent->fwnode,
- &mbi_domain_ops, NULL);
+ nexus_domain = irq_domain_create_
hierarchy(parent, 0, 0,
parent->fwnode,
+
&mbi_domain_ops, NULL);
if (!nexus_domain)
return -ENOMEM;
irq_domain_update_bus_token(nexus_domain, DOMAIN_BUS_NEXUS);
- nexus_domain->parent = parent;
err = mbi_allocate_pci_domain(nexus_domain, &pci_domain);