summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Masney <bmasney@redhat.com>2026-02-23 02:43:45 +0300
committerThomas Gleixner <tglx@kernel.org>2026-02-24 10:15:43 +0300
commit15f9b251fe404997eef1d7685877479364c4cfcb (patch)
treea4f242064c5e3ba25bea226fdafaa7b5c8562ff0
parent86be659415b0ddefebc3120e309091aa215a9064 (diff)
downloadlinux-15f9b251fe404997eef1d7685877479364c4cfcb.tar.xz
irqchip/irq-pic32-evic: Don't define plat_irq_dispatch() for !MIPS builds
plat_irq_dispatch() is specific to the MIPS architecture, so 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@redhat.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-2-37f50d1f14af@redhat.com
-rw-r--r--drivers/irqchip/irq-pic32-evic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c
index 325b97a0287f..1eeb0e63d670 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;
+#ifdef 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)
{