* [PATCH v1] memory: tegra210-emc: Make driver dependent on OF_RESERVED_MEM
@ 2021-06-11 15:42 Dmitry Osipenko
0 siblings, 0 replies; only message in thread
From: Dmitry Osipenko @ 2021-06-11 15:42 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Krzysztof Kozlowski
Cc: linux-kernel, linux-tegra
Tegra210 EMC driver requires OF_RESERVED_MEM to be enabled in order
to be useful at runtime. The OF_RESERVED_MEM is enabled by default in
defconfig, but it could disabled manually, breaking functionality of
the driver. Make driver dependent on OF_RESERVED_MEM Kconfig option,
for clarity.
Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
drivers/memory/tegra/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/tegra/Kconfig b/drivers/memory/tegra/Kconfig
index f9bae36c03a3..17053eaf87b9 100644
--- a/drivers/memory/tegra/Kconfig
+++ b/drivers/memory/tegra/Kconfig
@@ -51,7 +51,7 @@ config TEGRA210_EMC_TABLE
config TEGRA210_EMC
tristate "NVIDIA Tegra210 External Memory Controller driver"
- depends on ARCH_TEGRA_210_SOC || COMPILE_TEST
+ depends on (ARCH_TEGRA_210_SOC && OF_RESERVED_MEM) || COMPILE_TEST
select TEGRA210_EMC_TABLE
help
This driver is for the External Memory Controller (EMC) found on
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-11 15:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-11 15:42 [PATCH v1] memory: tegra210-emc: Make driver dependent on OF_RESERVED_MEM Dmitry Osipenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox