[SeaBIOS] [PATCH 3/4] tpm: use get_tpm_version() callback

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Fri Oct 6 16:33:26 CEST 2017


From: Marc-André Lureau <marcandre.lureau at redhat.com>

As originally intended, I guess.

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 src/hw/tpm_drivers.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hw/tpm_drivers.c b/src/hw/tpm_drivers.c
index 0daaef2..5cee9d8 100644
--- a/src/hw/tpm_drivers.c
+++ b/src/hw/tpm_drivers.c
@@ -346,6 +346,7 @@ struct tpm_driver tpm_drivers[TPM_NUM_DRIVERS] = {
             .durations     = NULL,
             .set_timeouts  = set_timeouts,
             .probe         = tis_probe,
+            .get_tpm_version = tis_get_tpm_version,
             .init          = tis_init,
             .activate      = tis_activate,
             .ready         = tis_ready,
@@ -367,7 +368,7 @@ tpmhw_probe(void)
         if (td->probe() != 0) {
             td->init();
             TPMHW_driver_to_use = i;
-            return tis_get_tpm_version();
+            return td->get_tpm_version();
         }
     }
     return TPM_VERSION_NONE;
-- 
2.14.1.146.gd35faa819




More information about the SeaBIOS mailing list