summaryrefslogtreecommitdiff
path: root/src/drivers/spi/tpm
diff options
context:
space:
mode:
authorSergii Dmytruk <sergii.dmytruk@3mdeb.com>2022-10-29 16:57:07 +0300
committerFelix Held <felix-coreboot@felixheld.de>2022-12-05 14:46:43 +0000
commit0a89d5237edcec3015363e9a7a3bd8b014fec500 (patch)
tree71186da3863f0fc295ac60b60344f3c6e801eb0a /src/drivers/spi/tpm
parent2393ad0bfb1cd23a0524e7b02a0fd75aff3bf274 (diff)
security/tpm: remove tis_close()
This function was never called from outside of drivers and src/drivers/pc80/tpm/tis.c was the only one doing it in a questionable way. tpm_vendor_cleanup() also isn't needed as one of tis_close() functions was its only caller. Change-Id: I9df76adfc21fca9fa1d1af7c40635ec0684ceb0f Ticket: https://ticket.coreboot.org/issues/433 Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68989 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/drivers/spi/tpm')
-rw-r--r--src/drivers/spi/tpm/tis.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/drivers/spi/tpm/tis.c b/src/drivers/spi/tpm/tis.c
index 5106fc05f6..b9b2a4a5cb 100644
--- a/src/drivers/spi/tpm/tis.c
+++ b/src/drivers/spi/tpm/tis.c
@@ -38,19 +38,6 @@ int tis_open(void)
return 0;
}
-int tis_close(void)
-{
- if (tpm_is_open) {
- /*
- * Do we need to do something here, like waiting for a
- * transaction to stop?
- */
- tpm_is_open = 0;
- }
-
- return 0;
-}
-
int tis_init(void)
{
struct spi_slave spi;