diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2021-05-28 02:54:02 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-06-01 12:14:44 +0200 |
commit | 4333e0300023c701d4c7bf0b834179ca19d4ddf8 (patch) | |
tree | a2ba0c950d56a92b12796ea4e9fa4f12edffffc7 /include/soc/tegra | |
parent | 03978d42ed0d69cb5d38dfb0aeb5216d19507c60 (diff) |
soc/tegra: Add stub for soc_is_tegra()
Add stub required for compile-testing of drivers.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc/tegra')
-rw-r--r-- | include/soc/tegra/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/soc/tegra/common.h b/include/soc/tegra/common.h index 98027a76ce3d..744280ecab5f 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 <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__ */ |