aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/tpm_drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hw/tpm_drivers.c')
-rw-r--r--src/hw/tpm_drivers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hw/tpm_drivers.c b/src/hw/tpm_drivers.c
index 0daaef28..5cee9d85 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;