FIXUP: CHROMIUM: tpm: cr50_spi: Wake cr50 after resume

If CONFIG_PM_SLEEP is not enabled, we see the following build failure.

vers/char/tpm/cr50_spi.c: In function 'cr50_spi_resume':
drivers/char/tpm/cr50_spi.c:370:2: error:
	implicit declaration of function 'cr50_resume'

The following warning is also seen.

drivers/char/tpm/cr50_spi.c: At top level:
drivers/char/tpm/cr50_spi.c:358:12: warning:
	'cr50_spi_resume' defined but not used

TEST=build and boot

Signed-off-by: Guenter Roeck <>

Change-Id: I35ac7adb4b233e0988e20b9bb8de35d7fe5857c4
Commit-Ready: Guenter Roeck <>
Tested-by: Guenter Roeck <>
Reviewed-by: Andrey Pronin <>
(cherry picked from commit 6a67271c698e4813b4a348b57d8e55c96405e3f1)
Commit-Queue: Andrey Pronin <>
Tested-by: Andrey Pronin <>
diff --git a/drivers/char/tpm/cr50_spi.c b/drivers/char/tpm/cr50_spi.c
index bbee3fc..933bd8a 100644
--- a/drivers/char/tpm/cr50_spi.c
+++ b/drivers/char/tpm/cr50_spi.c
@@ -355,6 +355,7 @@
 	return 0;
 static int cr50_spi_resume(struct device *dev)
 	struct tpm_chip *chip = dev_get_drvdata(dev);
@@ -369,6 +370,7 @@
 	return cr50_resume(dev);
 static SIMPLE_DEV_PM_OPS(cr50_spi_pm, cr50_suspend, cr50_spi_resume);