Skip to contentSkip to conversation

rtc: Make U_BOOT_DRIVER entries unique

PATCH In review Tom Rini 1 participant 2 messages Sep 25, 2025 – Oct 8, 2025 Real time clock (RTC)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 rtc: 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 max313xx name.

---
 drivers/rtc/ds1672.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/ds1672.c +1 -1
index 4705e5abc932..651b1dc950fc 100644
@@ -108,7 +108,7 @@ static const struct udevice_id ds1672_of_id[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(rtc_max313xx) = {
+U_BOOT_DRIVER(rtc_ds1672) = {
 	.name	= "rtc-ds1672",
 	.id     = UCLASS_RTC,
 	.probe  = ds1672_probe,
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 max313xx name.

Applied to u-boot/master, thanks!

[1/1] rtc: Make U_BOOT_DRIVER entries unique

      commit: b7f35d30155c05d11e08c972fedaa86b11a226e6
Signature · 1 line
Tom