aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tpm/tpm2-cmd.c')
-rw-r--r--drivers/char/tpm/tpm2-cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm2-cmd.c
index cb7e4f6b70ba..286bd090a488 100644
--- a/drivers/char/tpm/tpm2-cmd.c
+++ b/drivers/char/tpm/tpm2-cmd.c
@@ -570,7 +570,7 @@ static void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle,
570 570
571 rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_FLUSH_CONTEXT); 571 rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_FLUSH_CONTEXT);
572 if (rc) { 572 if (rc) {
573 dev_warn(chip->pdev, "0x%08x was not flushed, out of memory\n", 573 dev_warn(&chip->dev, "0x%08x was not flushed, out of memory\n",
574 handle); 574 handle);
575 return; 575 return;
576 } 576 }
@@ -580,7 +580,7 @@ static void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle,
580 rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, flags, 580 rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, flags,
581 "flushing context"); 581 "flushing context");
582 if (rc) 582 if (rc)
583 dev_warn(chip->pdev, "0x%08x was not flushed, rc=%d\n", handle, 583 dev_warn(&chip->dev, "0x%08x was not flushed, rc=%d\n", handle,
584 rc); 584 rc);
585 585
586 tpm_buf_destroy(&buf); 586 tpm_buf_destroy(&buf);
@@ -753,7 +753,7 @@ void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type)
753 * except print the error code on a system failure. 753 * except print the error code on a system failure.
754 */ 754 */
755 if (rc < 0) 755 if (rc < 0)
756 dev_warn(chip->pdev, "transmit returned %d while stopping the TPM", 756 dev_warn(&chip->dev, "transmit returned %d while stopping the TPM",
757 rc); 757 rc);
758} 758}
759EXPORT_SYMBOL_GPL(tpm2_shutdown); 759EXPORT_SYMBOL_GPL(tpm2_shutdown);
@@ -820,7 +820,7 @@ static int tpm2_start_selftest(struct tpm_chip *chip, bool full)
820 * immediately. This is a workaround for that. 820 * immediately. This is a workaround for that.
821 */ 821 */
822 if (rc == TPM2_RC_TESTING) { 822 if (rc == TPM2_RC_TESTING) {
823 dev_warn(chip->pdev, "Got RC_TESTING, ignoring\n"); 823 dev_warn(&chip->dev, "Got RC_TESTING, ignoring\n");
824 rc = 0; 824 rc = 0;
825 } 825 }
826 826