Skip to contentSkip to conversation

thermal: Make U_BOOT_DRIVER entries unique

PATCH In review Tom Rini 1 participant 2 messages Sep 25, 2025 – Oct 8, 2025 Thermal

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 thermal: Make U_BOOT_DRIVER entries unique

All instances of the U_BOOT_DRIVER must use a unique name or they will lead to link time failures due to name space conflicts when both are present. In this case the driver was reusing the ti_bandgap name.

---
 drivers/thermal/ti-lm74.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/ti-lm74.c +1 -1
index 7d56f75df064..0310d3330c01 100644
@@ -44,7 +44,7 @@ static const struct udevice_id of_ti_lm74_match[] = {
 	{},
 };
 
-U_BOOT_DRIVER(ti_bandgap_thermal) = {
+U_BOOT_DRIVER(ti_lm74_thermal) = {
 	.name	= "ti_lm74_thermal",
 	.id	= UCLASS_THERMAL,
 	.ops	= &ti_lm74_ops,
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

All instances of the U_BOOT_DRIVER must use a unique name or they will lead to link time failures due to name space conflicts when both are present. In this case the driver was reusing the ti_bandgap name.

Applied to u-boot/master, thanks!

[1/1] thermal: Make U_BOOT_DRIVER entries unique

      commit: 78849ecc185610a89e2294265f42b75f84e4324d
Signature · 1 line
Tom