/* We are about to suspend. Save the TPM state so that it can be restored.  */
int tpm_pm_suspend(struct device *dev, pm_message_t pm_state)
/* We are about to suspend. Save the TPM state so that it can be restored.  */
int tpm_pm_suspend(struct device *dev, pm_message_t pm_state)
{
	struct tpm_chip *chip = dev_get_drvdata(dev);
	u8 savestate[] = {
		0, 193,
		0, 0, 0, 10,
		0, 0, 0, 152
	};
	if (chip == NULL)
		return -ENODEV;
	tpm_transmit(chip, savestate, sizeof(savestate));
	return 0;
}