]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
tpm: Make U_BOOT_DRIVER entries unique
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:56:23 +0000 (14:56 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 14 Oct 2025 07:42:27 +0000 (10:42 +0300)
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 tpm_tis_i2c name.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm_tis_infineon.c

index 30f23f8610a33e7cc3c584511c6c1ba76c2be8ea..c1e7b98295c5eaa40919c098038a524eb1a1d1ac 100644 (file)
@@ -626,7 +626,7 @@ static const struct udevice_id tpm_tis_i2c_ids[] = {
        { }
 };
 
-U_BOOT_DRIVER(tpm_tis_i2c) = {
+U_BOOT_DRIVER(tpm_tis_infineon) = {
        .name   = "tpm_tis_infineon",
        .id     = UCLASS_TPM,
        .of_match = tpm_tis_i2c_ids,