summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-bcm7038-l1.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2020-07-10 01:41:41 +0200
committerMarc Zyngier <maz@kernel.org>2020-07-17 14:41:42 +0200
commit52b350cbc94721d87f087d1a5800f9531c2d682c (patch)
treea1021b46e5636b018cdf6843f053092f51305b2e /drivers/irqchip/irq-bcm7038-l1.c
parentirqchip/brcmstb-l2: Match UPG_AUX_AON_INTR2 compatible (diff)
downloadlinux-52b350cbc94721d87f087d1a5800f9531c2d682c.tar.xz
linux-52b350cbc94721d87f087d1a5800f9531c2d682c.zip
irqchip/irq-bcm7038-l1: Allow building on ARM 32-bit
We need to have a definition for cpu_logical_map[] which on ARM platforms is provided by asm/smp_plat.h. This header is not automatically included from linux/smp.h and untangling it is a bit difficult. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200709234141.4901-1-f.fainelli@gmail.com
Diffstat (limited to 'drivers/irqchip/irq-bcm7038-l1.c')
-rw-r--r--drivers/irqchip/irq-bcm7038-l1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c
index fd7c537fb42a..f36bcd296ce2 100644
--- a/drivers/irqchip/irq-bcm7038-l1.c
+++ b/drivers/irqchip/irq-bcm7038-l1.c
@@ -28,6 +28,9 @@
#include <linux/irqchip.h>
#include <linux/irqchip/chained_irq.h>
#include <linux/syscore_ops.h>
+#ifdef CONFIG_ARM
+#include <asm/smp_plat.h>
+#endif
#define IRQS_PER_WORD 32
#define REG_BYTES_PER_IRQ_WORD (sizeof(u32) * 4)