summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Masney <bmasney@redhat.com>2026-02-23 02:43:47 +0300
committerThomas Gleixner <tglx@kernel.org>2026-02-24 10:15:43 +0300
commit6096f427ed8efff6198f2330f1756f9381c8a8ec (patch)
treefdbb9c84a0a760e73e2a2e2d4550a642529e594b
parent282f8b547d51d8a33b9230ba58e2324babe0a96a (diff)
downloadlinux-6096f427ed8efff6198f2330f1756f9381c8a8ec.tar.xz
irqchip/irq-pic32-evic: Only include asm headers when compiling for MIPS
The asm headers are not actually needed when compiling on architectures other than MIPS, and traps.h is not available on all architectures. Include them on MIPS systems so that this driver can be compiled on other architectures. [ tglx: Massaged change log ] 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-4-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 afb700265451..ecea7cb3ba84 100644
--- a/drivers/irqchip/irq-pic32-evic.c
+++ b/drivers/irqchip/irq-pic32-evic.c
@@ -15,8 +15,10 @@
#include <linux/irq.h>
#include <linux/platform_data/pic32.h>
+#ifdef CONFIG_MIPS
#include <asm/irq.h>
#include <asm/traps.h>
+#endif
#define REG_INTCON 0x0000
#define REG_INTSTAT 0x0020