Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tpm_tis: fix build warning with tpm_tis_resume

drivers/char/tpm/tpm_tis.c:838: warning: ‘tpm_tis_resume’ defined but
not used

Reported-by: James Morris <jmorris@namei.org>
Fixes: 00194826e6be ("tpm_tis: Clean up the force=1 module parameter")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
cc: stable@vger.kernel.org

+2
+2
drivers/char/tpm/tpm_tis.c
··· 814 814 return rc; 815 815 } 816 816 817 + #ifdef CONFIG_PM_SLEEP 817 818 static void tpm_tis_reenable_interrupts(struct tpm_chip *chip) 818 819 { 819 820 u32 intmask; ··· 856 855 857 856 return 0; 858 857 } 858 + #endif 859 859 860 860 static SIMPLE_DEV_PM_OPS(tpm_tis_pm, tpm_pm_suspend, tpm_tis_resume); 861 861