summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2018-08-14 03:11:38 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2018-08-20 21:28:04 +0200
commit994fa1c83d658f857dacf0512e8f7db246143d26 (patch)
tree31c638260fdbf906f57013e92929cb3f49677388 /arch/xtensa/include
parentxtensa: rework {CONFIG,PLATFORM}_DEFAULT_MEM_START (diff)
downloadlinux-994fa1c83d658f857dacf0512e8f7db246143d26.tar.xz
linux-994fa1c83d658f857dacf0512e8f7db246143d26.zip
xtensa: move PLATFORM_NR_IRQS to Kconfig
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r--arch/xtensa/include/asm/irq.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/irq.h b/arch/xtensa/include/asm/irq.h
index 19707db966f1..2270d93ab7e6 100644
--- a/arch/xtensa/include/asm/irq.h
+++ b/arch/xtensa/include/asm/irq.h
@@ -12,7 +12,6 @@
#define _XTENSA_IRQ_H
#include <linux/init.h>
-#include <platform/hardware.h>
#include <variant/core.h>
#ifdef CONFIG_VARIANT_IRQ_SWITCH
@@ -25,7 +24,9 @@ static inline void variant_irq_disable(unsigned int irq) { }
#ifndef VARIANT_NR_IRQS
# define VARIANT_NR_IRQS 0
#endif
-#ifndef PLATFORM_NR_IRQS
+#ifdef CONFIG_PLATFORM_NR_IRQS
+# define PLATFORM_NR_IRQS CONFIG_PLATFORM_NR_IRQS
+#else
# define PLATFORM_NR_IRQS 0
#endif
#define XTENSA_NR_IRQS XCHAL_NUM_INTERRUPTS