| From cf3fcc25107dac9d2eb41a7beeb0ec6d914c4a46 Mon Sep 17 00:00:00 2001 |
| From: Thierry Reding <treding@nvidia.com> |
| Date: Mon, 3 Feb 2020 15:31:14 +0100 |
| Subject: [PATCH] soc/tegra: fuse: Fix build with Tegra194 configuration |
| |
| commit 6f4ecbe284df5f22e386a640d9a4b32cede62030 upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c |
| index be9424a87173..9c3ef0a02fd4 100644 |
| --- a/drivers/soc/tegra/fuse/fuse-tegra30.c |
| +++ b/drivers/soc/tegra/fuse/fuse-tegra30.c |
| @@ -35,7 +35,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)) |
| -- |
| 2.7.4 |
| |