soc/tegra: fix T234 build failure
PATCH 1/1 soc/tegra: fix T234 build failure
From: Arnd Bergmann <[email protected]>
In a T234-only configuration, the fuse driver fails to build:
drivers/soc/tegra/fuse/fuse-tegra30.c:376:10: error: 'tegra30_fuse_read' undeclared here (not in a function); did you mean 'tegra_fuse_readl'?
Add the missing check in the #ifdef conditional.
Fixes 1f44febf71ba ("soc/tegra: fuse: Add Tegra234 support")
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/soc/tegra/fuse/fuse-tegra30.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/soc/tegra/fuse/fuse-tegra30.c +3 -1
@@ -37,7 +37,9 @@defined (CONFIG_ARCH_TEGRA_132_SOC ) || \defined (CONFIG_ARCH_TEGRA_210_SOC ) || \defined (CONFIG_ARCH_TEGRA_186_SOC ) || \ - defined(CONFIG_ARCH_TEGRA_194_SOC) +defined (CONFIG_ARCH_TEGRA_194_SOC ) || \ + defined(CONFIG_ARCH_TEGRA_234_SOC) +static u32 tegra30_fuse_read_early (struct tegra_fuse *fuse,unsigned int offset) {if (WARN_ON (!fuse->base))
Signature · 1 line
2.27.0
Quoted 6 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
In a T234-only configuration, the fuse driver fails to build:
drivers/soc/tegra/fuse/fuse-tegra30.c:376:10: error: 'tegra30_fuse_read' undeclared here (not in a function); did you mean 'tegra_fuse_readl'?
Quoted 7 lines
Add the missing check in the #ifdef conditional.
Fixes 1f44febf71ba ("soc/tegra: fuse: Add Tegra234 support")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/soc/tegra/fuse/fuse-tegra30.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Do you want me to pick this up, or are you going to apply it directly to ARM SoC? Either way is fine with me, so:
Acked-by Thierry Reding <[email protected]>