[PATCH v3 1/2] memory: jz4780-nemc: Limit dependency and compile testing to Ingenic architecture only

Krzysztof Kozlowski krzk at kernel.org
Fri Jul 24 10:54:00 EDT 2020

Enabling the JZ4780_NEMC driver makes sense only for specific hardware -
the Ingenic SoC architecture.  Set it's dependency to MACH_INGENIC so it
will not appear on unrelated architectures (easier job for
downstream/distro kernel engineers).

When compile testing, do not enable the driver on other architectures.

Signed-off-by: Krzysztof Kozlowski <krzk at kernel.org>


Changes since v2:
1. MIPS -> MACH_INGENIC, as suggested by Arnd
 drivers/memory/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index a1493549fec3..cd4fc93b50df 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -152,8 +152,8 @@ config FSL_IFC
 config JZ4780_NEMC
 	bool "Ingenic JZ4780 SoC NEMC driver"
-	default y
-	depends on MIPS || COMPILE_TEST
+	default y if MACH_INGENIC
 	depends on HAS_IOMEM && OF
 	  This driver is for the NAND/External Memory Controller (NEMC) in

More information about the linux-mtd mailing list