diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2021-10-20 21:48:56 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-10-20 22:06:34 +0300 |
commit | 3ac268d5ed2233d4a2db541d8fd744ccc13f46b0 (patch) | |
tree | b929fdc5cbc33bb72c16b910b960aa34910d60fe /drivers/irqchip/Kconfig | |
parent | 945486bf1ee3362068d95b5e1b5d4a7779ea0aaf (diff) | |
download | linux-3ac268d5ed2233d4a2db541d8fd744ccc13f46b0.tar.xz |
irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER
Allow the user selection and building of this interrupt controller
driver as a module since it is used on ARM/ARM64 based systems as a
second level interrupt controller hanging off the ARM GIC and is
therefore loadable during boot.
To avoid using of_irq_count() which is not exported towards module,
switch the driver to use the platform_device provided by the irqchip
platform driver code and resolve the number of interrupts using
platform_irq_count().
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211020184859.2705451-11-f.fainelli@gmail.com
Diffstat (limited to 'drivers/irqchip/Kconfig')
-rw-r--r-- | drivers/irqchip/Kconfig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 30018cc64539..b2f483b7458d 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -123,7 +123,9 @@ config BCM7038_L1_IRQ select GENERIC_IRQ_EFFECTIVE_AFF_MASK config BCM7120_L2_IRQ - bool + tristate "Broadcom STB 7120-style L2 interrupt controller driver" + depends on ARCH_BRCMSTB || BMIPS_GENERIC + default ARCH_BRCMSTB || BMIPS_GENERIC select GENERIC_IRQ_CHIP select IRQ_DOMAIN |