irqchip: Make irqchip_init() usable on pure ACPI systems
authorHuacai Chen <chenhuacai@loongson.cn>
Tue, 27 Sep 2022 12:45:57 +0000 (20:45 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 28 Sep 2022 13:11:28 +0000 (14:11 +0100)
commit612d5494aef9bd2ab68d585a8c0ac2b16d12d520
treee3f1f8e20e91c34b294bfe75c767d4f00b2f5390
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
irqchip: Make irqchip_init() usable on pure ACPI systems

Pure ACPI systems (e.g., LoongArch) do not need OF_IRQ, but still
require irqchip_init() to perform the ACPI irqchip probing,
even when OF_IRQ isn't selected.

Relax the dependency to enable the generic irqchip support when
ACPI_GENERIC_GSI is configured.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn>
[maz: revamped commit message]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220927124557.3246737-1-chenhuacai@loongson.cn
drivers/irqchip/Kconfig
include/linux/of_irq.h