Skip to contentSkip to conversation

tpm_tis: fix build warning with tpm_tis_resume

PATCH New Jarkko Sakkinen 1 participant 1 message Feb 22, 2016 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm_tis: fix build warning with tpm_tis_resume

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

Fixes 00194826e6be ("tpm_tis: Clean up the force=1 module parameter")
---
 drivers/char/tpm/tpm_tis.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/char/tpm/tpm_tis.c +2 -0
index 2b2eff9..a507006 100644
@@ -814,6 +814,7 @@ out_err:
 	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);
 
Signature · 1 line
2.7.0