[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200724145401.2566-2-krzk@kernel.org>
Date: Fri, 24 Jul 2020 16:54:00 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Krzysztof Kozlowski <krzk@...nel.org>,
Harvey Hunt <harveyhuntnexus@...il.com>,
Paul Cercueil <paul@...pouillou.net>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org
Cc: Arnd Bergmann <arnd@...db.de>
Subject: [PATCH v3 1/2] memory: jz4780-nemc: Limit dependency and compile testing to Ingenic architecture only
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@...nel.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
Powered by blists - more mailing lists