summaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/kernel/irq.c')
-rw-r--r--arch/loongarch/kernel/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/irq.c b/arch/loongarch/kernel/irq.c
index 0524bf1169b7..883e5066ae44 100644
--- a/arch/loongarch/kernel/irq.c
+++ b/arch/loongarch/kernel/irq.c
@@ -92,7 +92,7 @@ static int __init get_ipi_irq(void)
struct irq_domain *d = irq_find_matching_fwnode(cpuintc_handle, DOMAIN_BUS_ANY);
if (d)
- return irq_create_mapping(d, EXCCODE_IPI - EXCCODE_INT_START);
+ return irq_create_mapping(d, INT_IPI);
return -EINVAL;
}