projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b68761d
)
irqchip/jcore-aic: Kill use of irq_create_strict_mappings()
author
Marc Zyngier
<maz@kernel.org>
Tue, 6 Apr 2021 09:35:51 +0000
(10:35 +0100)
committer
Marc Zyngier
<maz@kernel.org>
Thu, 22 Apr 2021 14:55:22 +0000
(15:55 +0100)
irq_create_strict_mappings() is a poor way to allow the use of
a linear IRQ domain as a legacy one. Let's be upfront about it.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20210406093557.1073423-4-maz@kernel.org
drivers/irqchip/irq-jcore-aic.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-jcore-aic.c
b/drivers/irqchip/irq-jcore-aic.c
index
033bccb
..
5f47d8e
100644
(file)
--- a/
drivers/irqchip/irq-jcore-aic.c
+++ b/
drivers/irqchip/irq-jcore-aic.c
@@
-100,11
+100,11
@@
static int __init aic_irq_of_init(struct device_node *node,
jcore_aic.irq_unmask = noop;
jcore_aic.name = "AIC";
- domain = irq_domain_add_linear(node, dom_sz, &jcore_aic_irqdomain_ops,
+ domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq,
+ &jcore_aic_irqdomain_ops,
&jcore_aic);
if (!domain)
return -ENOMEM;
- irq_create_strict_mappings(domain, min_irq, min_irq, dom_sz - min_irq);
return 0;
}