aboutsummaryrefslogtreecommitdiffstats
path: root/include/soc/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2021-06-18 13:18:46 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-06-20 21:22:30 +0200
commit47661ee1821fc3a6b5ae07aac37410d6ccada976 (patch)
tree4bfc4734bb135a4987f1bb7aeedcb7e2cd58a43c /include/soc/tegra
parentiommu/arm-smmu: Use Tegra implementation on Tegra186 (diff)
downloadlinux-dev-47661ee1821fc3a6b5ae07aac37410d6ccada976.tar.xz
linux-dev-47661ee1821fc3a6b5ae07aac37410d6ccada976.zip
memory: tegra: Add compile-test stub for tegra_mc_probe_device()
The tegra_mc_probe_device() symbol is only available when the TEGRA_MC Kconfig option is enabled. Provide a stub if that's not the case so that the driver can be compile-tested. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20210618111846.1286166-1-thierry.reding@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Diffstat (limited to 'include/soc/tegra')
-rw-r--r--include/soc/tegra/mc.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h
index e19c2504a14b..1066b1194a5a 100644
--- a/include/soc/tegra/mc.h
+++ b/include/soc/tegra/mc.h
@@ -237,14 +237,19 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
#ifdef CONFIG_TEGRA_MC
struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev);
+int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
#else
static inline struct tegra_mc *
devm_tegra_memory_controller_get(struct device *dev)
{
return ERR_PTR(-ENODEV);
}
-#endif
-int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
+static inline int
+tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev)
+{
+ return -ENODEV;
+}
+#endif
#endif /* __SOC_TEGRA_MC_H__ */