]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spmi: sandbox: Make U_BOOT_DRIVER entries unique
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:56:18 +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 msm name.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/spmi/spmi-sandbox.c

index 992b08dd6120257cf9ce7e621c674dd6efbf8f3c..1a8561b3aea20e618a264e7adce529b7ab2a069d 100644 (file)
@@ -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,