]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
soc/tegra: fuse: Fix build with Tegra194 configuration
authorThierry Reding <treding@nvidia.com>
Mon, 3 Feb 2020 14:31:14 +0000 (15:31 +0100)
committerOlof Johansson <olof@lixom.net>
Tue, 11 Feb 2020 23:00:15 +0000 (15:00 -0800)
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>
drivers/soc/tegra/fuse/fuse-tegra30.c

index f68f4e1c215d123959e80a4e5db9c2bdfcd23939..e6037f900fb70ab31884be5f0cc48cd2c6e4aed3 100644 (file)
@@ -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))