[PATCH 2/5] irqchip/irq-pic32-evic: don't define plat_irq_dispatch() for !MIPS builds
From: Brian Masney
Date: Sun Feb 22 2026 - 18:46:38 EST
plat_irq_dispatch() is specific to the MIPS architecture, so let's only
include it when the driver is compiled on that architecture. This is in
preparation for allowing this driver to be compiled on all
architectures.
Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
---
drivers/irqchip/irq-pic32-evic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c
index 325b97a0287f632177d85d5bfec6f1ab54418ad9..2db114beb00c451d9aa82253eabdd7f2c7ebe4c0 100644
--- a/drivers/irqchip/irq-pic32-evic.c
+++ b/drivers/irqchip/irq-pic32-evic.c
@@ -40,6 +40,7 @@ struct evic_chip_data {
static struct irq_domain *evic_irq_domain;
static void __iomem *evic_base;
+#if defined(CONFIG_MIPS)
asmlinkage void __weak plat_irq_dispatch(void)
{
unsigned int hwirq;
@@ -47,6 +48,7 @@ asmlinkage void __weak plat_irq_dispatch(void)
hwirq = readl(evic_base + REG_INTSTAT) & 0xFF;
do_domain_IRQ(evic_irq_domain, hwirq);
}
+#endif
static struct evic_chip_data *irqd_to_priv(struct irq_data *data)
{
--
2.53.0