summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2015-01-19 10:43:40 +0200
committerPeter Huewe <peterhuewe@gmx.de>2015-01-19 20:46:50 +0100
commit914309995ed5c6c737df4135ac5ba2b67cff194d (patch)
treed4659beb473160357b0d2253b9fedee2904dda75
parent3b09825dd8758a59c1a70e18df5bc8d04f8e5ced (diff)
downloadlinux-stable-914309995ed5c6c737df4135ac5ba2b67cff194d.tar.gz
linux-stable-914309995ed5c6c737df4135ac5ba2b67cff194d.tar.bz2
linux-stable-914309995ed5c6c737df4135ac5ba2b67cff194d.zip
char/tpm/tpm_crb: fix build error
SIMPLE_DEV_PM_OPS() was inside #ifdef CONFIG_PM_SLEEP. Fixes: 30fc8d1 ("tpm: TPM 2.0 CRB Interface") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
-rw-r--r--drivers/char/tpm/tpm_crb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_crb.c b/drivers/char/tpm/tpm_crb.c
index c248a356d5c9..3dd23cfae4fe 100644
--- a/drivers/char/tpm/tpm_crb.c
+++ b/drivers/char/tpm/tpm_crb.c
@@ -107,9 +107,9 @@ static int crb_resume(struct device *dev)
return rc;
}
+#endif
static SIMPLE_DEV_PM_OPS(crb_pm, tpm_pm_suspend, crb_resume);
-#endif
static u8 crb_status(struct tpm_chip *chip)
{