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 <k...@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 MACH_INGENIC || COMPILE_TEST depends on HAS_IOMEM && OF help This driver is for the NAND/External Memory Controller (NEMC) in -- 2.17.1