From: Dmitry Osipenko Date: Thu, 27 May 2021 23:54:02 +0000 (+0300) Subject: soc/tegra: Add stub for soc_is_tegra() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4333e0300023c701d4c7bf0b834179ca19d4ddf8;p=linux.git soc/tegra: Add stub for soc_is_tegra() Add stub required for compile-testing of drivers. Signed-off-by: Dmitry Osipenko Signed-off-by: Thierry Reding --- diff --git a/include/soc/tegra/common.h b/include/soc/tegra/common.h index 98027a76ce3d3..744280ecab5f7 100644 --- a/include/soc/tegra/common.h +++ b/include/soc/tegra/common.h @@ -6,6 +6,15 @@ #ifndef __SOC_TEGRA_COMMON_H__ #define __SOC_TEGRA_COMMON_H__ +#include + +#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__ */