[PATCH] spmi: sandbox: Make U_BOOT_DRIVER entries unique

Tom Rini trini at konsulko.com
Thu Sep 25 22:56:18 CEST 2025


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.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/spmi/spmi-sandbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spmi/spmi-sandbox.c b/drivers/spmi/spmi-sandbox.c
index 992b08dd6120..1a8561b3aea2 100644
--- a/drivers/spmi/spmi-sandbox.c
+++ b/drivers/spmi/spmi-sandbox.c
@@ -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,
-- 
2.43.0



More information about the U-Boot mailing list