diff options
Diffstat (limited to 'drivers/char/tpm/tpm.c')
-rw-r--r-- | drivers/char/tpm/tpm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 39564b76d4a..c88424a0c89 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c | |||
@@ -1046,12 +1046,6 @@ void tpm_remove_hardware(struct device *dev) | |||
1046 | } | 1046 | } |
1047 | EXPORT_SYMBOL_GPL(tpm_remove_hardware); | 1047 | EXPORT_SYMBOL_GPL(tpm_remove_hardware); |
1048 | 1048 | ||
1049 | static u8 savestate[] = { | ||
1050 | 0, 193, /* TPM_TAG_RQU_COMMAND */ | ||
1051 | 0, 0, 0, 10, /* blob length (in bytes) */ | ||
1052 | 0, 0, 0, 152 /* TPM_ORD_SaveState */ | ||
1053 | }; | ||
1054 | |||
1055 | /* | 1049 | /* |
1056 | * We are about to suspend. Save the TPM state | 1050 | * We are about to suspend. Save the TPM state |
1057 | * so that it can be restored. | 1051 | * so that it can be restored. |
@@ -1059,6 +1053,12 @@ static u8 savestate[] = { | |||
1059 | int tpm_pm_suspend(struct device *dev, pm_message_t pm_state) | 1053 | int tpm_pm_suspend(struct device *dev, pm_message_t pm_state) |
1060 | { | 1054 | { |
1061 | struct tpm_chip *chip = dev_get_drvdata(dev); | 1055 | struct tpm_chip *chip = dev_get_drvdata(dev); |
1056 | u8 savestate[] = { | ||
1057 | 0, 193, /* TPM_TAG_RQU_COMMAND */ | ||
1058 | 0, 0, 0, 10, /* blob length (in bytes) */ | ||
1059 | 0, 0, 0, 152 /* TPM_ORD_SaveState */ | ||
1060 | }; | ||
1061 | |||
1062 | if (chip == NULL) | 1062 | if (chip == NULL) |
1063 | return -ENODEV; | 1063 | return -ENODEV; |
1064 | 1064 | ||