Commit ae7816af authored by Jarkko Sakkinen's avatar Jarkko Sakkinen Committed by Tim Gardner

tpm_tis: fix build warning with tpm_tis_resume

BugLink: http://bugs.launchpad.net/bugs/1398274

drivers/char/tpm/tpm_tis.c:838: warning: ‘tpm_tis_resume’ defined but
not used
Reported-by: default avatarJames Morris <jmorris@namei.org>
Fixes: 00194826 ("tpm_tis: Clean up the force=1 module parameter")
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
cc: stable@vger.kernel.org
(cherry picked from commit 2cb6d646)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent c03fb051
......@@ -814,6 +814,7 @@ static int tpm_tis_init(struct device *dev, struct tpm_info *tpm_info,
return rc;
}
#ifdef CONFIG_PM_SLEEP
static void tpm_tis_reenable_interrupts(struct tpm_chip *chip)
{
u32 intmask;
......@@ -855,6 +856,7 @@ static int tpm_tis_resume(struct device *dev)
return 0;
}
#endif
static SIMPLE_DEV_PM_OPS(tpm_tis_pm, tpm_pm_suspend, tpm_tis_resume);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment