thermal: Make U_BOOT_DRIVER entries unique
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.
Signed-off-by Tom Rini <[email protected]>
--- drivers/thermal/ti-lm74.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/ti-lm74.c +1 -1
@@ -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
Quoted 5 lines · Tom Rini
All instances of the
U_BOOT_DRIVERmust 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 theti_bandgapname.
Applied to u-boot/master, thanks!
[1/1] thermal: Make U_BOOT_DRIVER entries unique
commit: 78849ecc185610a89e2294265f42b75f84e4324d
Signature · 1 line
Tom