soc/tegra: Add stub for soc_is_tegra()
authorDmitry Osipenko <digetx@gmail.com>
Thu, 27 May 2021 23:54:02 +0000 (02:54 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 1 Jun 2021 10:14:44 +0000 (12:14 +0200)
Add stub required for compile-testing of drivers.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/soc/tegra/common.h

index 98027a7..744280e 100644 (file)
@@ -6,6 +6,15 @@
 #ifndef __SOC_TEGRA_COMMON_H__
 #define __SOC_TEGRA_COMMON_H__
 
+#include <linux/types.h>
+
+#ifdef CONFIG_ARCH_TEGRA
 bool soc_is_tegra(void);
+#else
+static inline bool soc_is_tegra(void)
+{
+       return false;
+}
+#endif
 
 #endif /* __SOC_TEGRA_COMMON_H__ */