]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/tpm/tpm_tis_lpc.c
dm: tpm: Add a uclass for Trusted Platform Modules
[karo-tx-uboot.git] / drivers / tpm / tpm_tis_lpc.c
index d09f8cee05b0940ea32c7707e5aeb4a1e6d2e90e..3109c504f3f151caa474b4684b68301d575afbe5 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <tis.h>
 #include <tpm.h>
 
 #define PREFIX "lpc_tpm: "
@@ -426,9 +427,6 @@ int tis_open(void)
 {
        u8 locality = 0; /* we use locality zero for everything. */
 
-       if (tis_close())
-               return TPM_DRIVER_ERR;
-
        /* now request access to locality. */
        tpm_write_word(TIS_ACCESS_REQUEST_USE, &lpc_tpm_dev[locality].access);