Commit bd781ae5 authored by Marc Zyngier's avatar Marc Zyngier

mips: netlogic: Use irq_domain_simple_ops for XLP PIC

Use the generic irq_domain_simple_ops structure instead of
a home-grown one.
Acked-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 4a35d6a0
...@@ -276,10 +276,6 @@ asmlinkage void plat_irq_dispatch(void) ...@@ -276,10 +276,6 @@ asmlinkage void plat_irq_dispatch(void)
} }
#ifdef CONFIG_CPU_XLP #ifdef CONFIG_CPU_XLP
static const struct irq_domain_ops xlp_pic_irq_domain_ops = {
.xlate = irq_domain_xlate_onetwocell,
};
static int __init xlp_of_pic_init(struct device_node *node, static int __init xlp_of_pic_init(struct device_node *node,
struct device_node *parent) struct device_node *parent)
{ {
...@@ -324,7 +320,7 @@ static int __init xlp_of_pic_init(struct device_node *node, ...@@ -324,7 +320,7 @@ static int __init xlp_of_pic_init(struct device_node *node,
xlp_pic_domain = irq_domain_add_legacy(node, n_picirqs, xlp_pic_domain = irq_domain_add_legacy(node, n_picirqs,
nlm_irq_to_xirq(socid, PIC_IRQ_BASE), PIC_IRQ_BASE, nlm_irq_to_xirq(socid, PIC_IRQ_BASE), PIC_IRQ_BASE,
&xlp_pic_irq_domain_ops, NULL); &irq_domain_simple_ops, NULL);
if (xlp_pic_domain == NULL) { if (xlp_pic_domain == NULL) {
pr_err("PIC %pOFn: Creating legacy domain failed!\n", node); pr_err("PIC %pOFn: Creating legacy domain failed!\n", node);
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment