[PATCH] platform: cznic: CZNIC_PLATFORMS should depend on MACH_ARMADA_38X || ARCH_MVEBU || PPC_P2020

From: Geert Uytterhoeven
Date: Thu Jul 11 2024 - 10:28:55 EST


CZ.NIC's Turris devices are based on Marvell Armada 385 or 3720, or on
Freescale P2020 SoCs. Hence add dependencies on MACH_ARMADA_38X,
ARCH_MVEBU, and PPC_P2020, to prevent asking the user about these
drivers when configuring a kernel that cannot run on any CZ.NIC Turris
system.

Fixes: 992f1a3d4e88498d ("platform: cznic: Add preliminary support for Turris Omnia MCU")
Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
---
Perhaps the dependency on PPC_P2020 should be dropped?
---
drivers/platform/cznic/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/platform/cznic/Kconfig b/drivers/platform/cznic/Kconfig
index 6edac80d5fa37762..70f5e683f61f2708 100644
--- a/drivers/platform/cznic/Kconfig
+++ b/drivers/platform/cznic/Kconfig
@@ -6,6 +6,7 @@

menuconfig CZNIC_PLATFORMS
bool "Platform support for CZ.NIC's Turris hardware"
+ depends on MACH_ARMADA_38X || ARCH_MVEBU || PPC_P2020 || COMPILE_TEST
help
Say Y here to be able to choose driver support for CZ.NIC's Turris
devices. This option alone does not add any kernel code.
--
2.34.1