spmi: sandbox: Make U_BOOT_DRIVER entries unique
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.
Signed-off-by Tom Rini <[email protected]>
--- drivers/spmi/spmi-sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spmi/spmi-sandbox.c +1 -1
@@ -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
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 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