soc/tegra: fuse: Fix build with Tegra194 configuration
PATCH 1/1 soc/tegra: fuse: Fix build with Tegra194 configuration
From: Thierry Reding <[email protected]>
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.
Reported-by kbuild test robot <[email protected]>
Signed-off-by Thierry Reding <[email protected]>
--- drivers/soc/tegra/fuse/fuse-tegra30.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/tegra/fuse/fuse-tegra30.c +2 -1
@@ -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))
Signature · 1 line
2.24.1