Skip to contentSkip to conversation

spmi: sandbox: Make U_BOOT_DRIVER entries unique

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

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 spmi: sandbox: 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 msm name.

---
 drivers/spmi/spmi-sandbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spmi/spmi-sandbox.c +1 -1
index 992b08dd6120..1a8561b3aea2 100644
@@ -144,7 +144,7 @@ static const struct udevice_id sandbox_spmi_ids[] = {
 	{ }
 };
 
-U_BOOT_DRIVER(msm_spmi) = {
+U_BOOT_DRIVER(sandbox_spmi) = {
 	.name = "sandbox_spmi",
 	.id = UCLASS_SPMI,
 	.of_match = sandbox_spmi_ids,
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 msm name.

Applied to u-boot/master, thanks!

[1/1] spmi: sandbox: Make U_BOOT_DRIVER entries unique

      commit: 6e04cc321f246fd223bdcb094e10c1241ee5e664
Signature · 1 line
Tom