summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/pc80/tpm/romstage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/pc80/tpm/romstage.c b/src/drivers/pc80/tpm/romstage.c
index a257ba1610..5531458726 100644
--- a/src/drivers/pc80/tpm/romstage.c
+++ b/src/drivers/pc80/tpm/romstage.c
@@ -215,7 +215,6 @@ void init_tpm(int s3resume)
if (tis_open())
return;
-
if (s3resume) {
/* S3 Resume */
printk(BIOS_SPEW, "TPM: Resume\n");
@@ -226,6 +225,7 @@ void init_tpm(int s3resume)
* in S3, so it's already initialized.
*/
printk(BIOS_DEBUG, "TPM: Already initialized.\n");
+ tis_close();
return;
}
} else {
@@ -234,6 +234,8 @@ void init_tpm(int s3resume)
response, sizeof(response));
}
+ tis_close();
+
if (result == TPM_SUCCESS) {
printk(BIOS_SPEW, "TPM: OK.\n");
return;