diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2023-02-13 11:42:55 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-02-13 19:31:24 +0000 |
commit | a14e7fdd43040a2a5da2cc979063b3c958015aa9 (patch) | |
tree | 0c0797aef0e7e05348cfcacf1fb1557c8546f7f0 /arch | |
parent | bc1bc1b309b42ff3faea957df7ac9382366c5eef (diff) |
x86/uv: 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é <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-14-johan+linaro@kernel.org
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/platform/uv/uv_irq.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/platform/uv/uv_irq.c b/arch/x86/platform/uv/uv_irq.c index 1a536a187d74..ee21d6a36a80 100644 --- a/arch/x86/platform/uv/uv_irq.c +++ b/arch/x86/platform/uv/uv_irq.c @@ -166,10 +166,9 @@ static struct irq_domain *uv_get_irq_domain(void) if (!fn) goto out; - uv_domain = irq_domain_create_tree(fn, &uv_domain_ops, NULL); - if (uv_domain) - uv_domain->parent = x86_vector_domain; - else + uv_domain = irq_domain_create_hierarchy(x86_vector_domain, 0, 0, fn, + &uv_domain_ops, NULL); + if (!uv_domain) irq_domain_free_fwnode(fn); out: mutex_unlock(&uv_lock); |