Commit 15f9b251 authored by Brian Masney's avatar Brian Masney Committed by Thomas Gleixner
Browse files

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: default avatarBrian Masney <bmasney@redhat.com>
Signed-off-by: default avatarThomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-2-37f50d1f14af@redhat.com
parent 86be6594
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
{