diff options
author | Sander Vanheule <sander@svanheule.net> | 2022-09-19 23:24:41 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-09-28 16:17:10 +0300 |
commit | a1cc8a62c2b21d6d71d5a3d5d7c7658e3ab42d47 (patch) | |
tree | 5efc67701e7cf8f1e5d9c08799bdba4372a2137d /drivers/irqchip | |
parent | b90cb1053190353cc30f0fef0ef1f378ccc063c5 (diff) | |
download | linux-a1cc8a62c2b21d6d71d5a3d5d7c7658e3ab42d47.tar.xz |
irqchip/realtek-rtl: use irq_domain_add_linear()
When using an offset of 0, irq_domain_add_simple() is identical to
irq_domain_add_linear() on DT-based systems, so use the latter instead.
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/0c4cd9f7661a30a4cb7ab9881c4a94bc8a379162.1663617425.git.sander@svanheule.net
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-realtek-rtl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-realtek-rtl.c b/drivers/irqchip/irq-realtek-rtl.c index 56bf502d9c67..160feae0ded7 100644 --- a/drivers/irqchip/irq-realtek-rtl.c +++ b/drivers/irqchip/irq-realtek-rtl.c @@ -171,8 +171,7 @@ static int __init realtek_rtl_of_init(struct device_node *node, struct device_no /* Disable all cascaded interrupts */ writel(0, REG(RTL_ICTL_GIMR)); - domain = irq_domain_add_simple(node, 32, 0, - &irq_domain_ops, NULL); + domain = irq_domain_add_linear(node, 32, &irq_domain_ops, NULL); ret = map_interrupts(node, domain); if (ret) { |