irqchip/gic-v3-its: Use irq_domain_create_hierarchy()
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 13 Feb 2023 10:42:58 +0000 (11:42 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Feb 2023 19:31:25 +0000 (19:31 +0000)
commit1e46e040decede1723a5b11f0689942134c29d9a
tree3772412e94954714f99e8d7a47a0cda745007b4f
parente6e8cd62a56f9ed0dcdf8d01147709b59a111418
irqchip/gic-v3-its: 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.

Note that the domain host_data was first set to the struct its_node
during allocation only to immediately be overwritten with the struct
msi_domain_info.

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-17-johan+linaro@kernel.org
drivers/irqchip/irq-gic-v3-its.c