Skip to contentSkip to conversation

soc/tegra: fix T234 build failure

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 3, 2020 – Dec 4, 2020 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/soc/tegra/fuse/fuse-tegra30.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/soc/tegra/fuse/fuse-tegra30.c +3 -1
index 9ea7f0168457..887402752688 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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")
---
 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: