]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
thermal: Make U_BOOT_DRIVER entries unique
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:56:20 +0000 (14:56 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 19:54:58 +0000 (13:54 -0600)
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 <trini@konsulko.com>
drivers/thermal/ti-lm74.c

index 7d56f75df0645dbb605ca2331239efacf0266fd5..0310d3330c015a5e90ee5cf114efc57fed188375 100644 (file)
@@ -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,