irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 20 Oct 2021 18:48:56 +0000 (11:48 -0700)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Oct 2021 19:06:34 +0000 (20:06 +0100)
commit3ac268d5ed2233d4a2db541d8fd744ccc13f46b0
treeb929fdc5cbc33bb72c16b910b960aa34910d60fe
parent945486bf1ee3362068d95b5e1b5d4a7779ea0aaf
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
drivers/irqchip/Kconfig
drivers/irqchip/irq-bcm7120-l2.c