aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/pc80/tpm/tis.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index 1ae6f1dc92..5bb566297c 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -369,12 +369,14 @@ static int tis_command_ready(u8 locality)
}
/*
+ * tis_init()
+ *
* Probe the TPM device and try determining its manufacturer/device name.
*
* Returns 0 on success (the device is found or was found during an earlier
* invocation) or TPM_DRIVER_ERR if the device is not found.
*/
-static u32 tis_probe(void)
+int tis_init(void)
{
const char *device_name = "unknown";
const char *vendor_name = device_name;
@@ -609,19 +611,6 @@ static u32 tis_readresponse(u8 *buffer, size_t *len)
}
/*
- * tis_init()
- *
- * Initialize the TPM device. Returns 0 on success or TPM_DRIVER_ERR on
- * failure (in case device probing did not succeed).
- */
-int tis_init(void)
-{
- if (tis_probe())
- return TPM_DRIVER_ERR;
- return 0;
-}
-
-/*
* tis_open()
*
* Requests access to locality 0 for the caller.