diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-08-14 03:11:38 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-08-20 21:28:04 +0200 |
commit | 994fa1c83d658f857dacf0512e8f7db246143d26 (patch) | |
tree | 31c638260fdbf906f57013e92929cb3f49677388 /arch/xtensa/include | |
parent | xtensa: rework {CONFIG,PLATFORM}_DEFAULT_MEM_START (diff) | |
download | linux-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.h | 5 |
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 |