diff mbox series

irqchip: MST_IRQ should depend on ARCH_MEDIATEK or ARCH_MSTARV7

Message ID 20201014131703.18021-1-geert+renesas@glider.be (mailing list archive)
State New, archived
Headers show
Series irqchip: MST_IRQ should depend on ARCH_MEDIATEK or ARCH_MSTARV7 | expand

Commit Message

Geert Uytterhoeven Oct. 14, 2020, 1:17 p.m. UTC
The MStar interrupt controller is only found on MStar, SigmaStar, and
Mediatek SoCs.  Hence add dependencies on ARCH_MEDIATEK and
ARCH_MSTARV7, to prevent asking the user about the MStar interrupt
controller driver when configuring a kernel without support for MStar,
SigmaStar, and Mediatek SoCs.

Fixes: ad4c938c92af9130 ("irqchip/irq-mst: Add MStar interrupt controller support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/irqchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Daniel Palmer Oct. 15, 2020, 8:46 a.m. UTC | #1
Hi Geert,

This looks good to me.

Acked-by: Daniel Palmer <daniel@thingy.jp>

Thanks,

Daniel
Marc Zyngier Oct. 15, 2020, 9:29 p.m. UTC | #2
On Wed, 14 Oct 2020 15:17:03 +0200, Geert Uytterhoeven wrote:
> The MStar interrupt controller is only found on MStar, SigmaStar, and
> Mediatek SoCs.  Hence add dependencies on ARCH_MEDIATEK and
> ARCH_MSTARV7, to prevent asking the user about the MStar interrupt
> controller driver when configuring a kernel without support for MStar,
> SigmaStar, and Mediatek SoCs.

Applied to irq/irqchip-next, thanks!

[1/1] irqchip/mst: MST_IRQ should depend on ARCH_MEDIATEK or ARCH_MSTARV7
      commit: 61b0648d569aca932eab87a67f7ca0ffd3ea2b68

Cheers,

	M.
diff mbox series

Patch

diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index c6098eee0c7cf217..500b16648e5183c4 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -591,6 +591,7 @@  config LOONGSON_PCH_MSI
 
 config MST_IRQ
 	bool "MStar Interrupt Controller"
+	depends on ARCH_MEDIATEK || ARCH_MSTARV7 || COMPILE_TEST
 	default ARCH_MEDIATEK
 	select IRQ_DOMAIN
 	select IRQ_DOMAIN_HIERARCHY