projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b90cb10
)
irqchip/realtek-rtl: use irq_domain_add_linear()
author
Sander Vanheule
<sander@svanheule.net>
Mon, 19 Sep 2022 20:24:41 +0000
(22:24 +0200)
committer
Marc Zyngier
<maz@kernel.org>
Wed, 28 Sep 2022 13:17:10 +0000
(14:17 +0100)
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
drivers/irqchip/irq-realtek-rtl.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-realtek-rtl.c
b/drivers/irqchip/irq-realtek-rtl.c
index 56bf502d9c6739d60af8c5ae7b0c667bf10de4ba..160feae0ded7f951d4e7ec614b608e93992a66cb 100644
(file)
--- 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) {