diff options
author | Thierry Reding <treding@nvidia.com> | 2020-02-03 15:31:14 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2020-02-11 15:00:15 -0800 |
commit | 6f4ecbe284df5f22e386a640d9a4b32cede62030 (patch) | |
tree | a3e353455229d294950063ff3551a8eecb2b9f9a /drivers/soc/tegra | |
parent | d7a9c595118ad377b1c68524578271eb16f81a00 (diff) | |
download | linux-stable-6f4ecbe284df5f22e386a640d9a4b32cede62030.tar.gz linux-stable-6f4ecbe284df5f22e386a640d9a4b32cede62030.tar.bz2 linux-stable-6f4ecbe284df5f22e386a640d9a4b32cede62030.zip |
soc/tegra: fuse: Fix build with Tegra194 configuration
If only Tegra194 support is enabled, the tegra30_fuse_read() and
tegra30_fuse_init() function are not declared and cause a build failure.
Add Tegra194 to the preprocessor guard to make sure these functions are
available for Tegra194-only builds as well.
Link: https://lore.kernel.org/r/20200203143114.3967295-1-thierry.reding@gmail.com
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/soc/tegra')
-rw-r--r-- | drivers/soc/tegra/fuse/fuse-tegra30.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c index f68f4e1c215d..e6037f900fb7 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra30.c +++ b/drivers/soc/tegra/fuse/fuse-tegra30.c @@ -36,7 +36,8 @@ defined(CONFIG_ARCH_TEGRA_124_SOC) || \ defined(CONFIG_ARCH_TEGRA_132_SOC) || \ defined(CONFIG_ARCH_TEGRA_210_SOC) || \ - defined(CONFIG_ARCH_TEGRA_186_SOC) + defined(CONFIG_ARCH_TEGRA_186_SOC) || \ + defined(CONFIG_ARCH_TEGRA_194_SOC) static u32 tegra30_fuse_read_early(struct tegra_fuse *fuse, unsigned int offset) { if (WARN_ON(!fuse->base)) |