summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-11-15 21:37:17 +0100
committerMark Brown <broonie@kernel.org>2016-11-16 14:59:38 +0000
commita9a813ddc505279efd94b2b8ff9ead0f7e005b63 (patch)
tree21312fb0d44bdc9562ef356ec99b82c42a4233b7
parent278c48d2ab2c2f803a7ac501b67b14aa7e73e771 (diff)
downloadlinux-a9a813ddc505279efd94b2b8ff9ead0f7e005b63.tar.bz2
spi: fsl-espi: simplify of_fsl_espi_suspend
Simplify of_fsl_espi_suspend a little. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-fsl-espi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index b5feae31fcc0..2635a33b8e98 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -783,11 +783,7 @@ static int of_fsl_espi_suspend(struct device *dev)
return ret;
}
- ret = pm_runtime_force_suspend(dev);
- if (ret < 0)
- return ret;
-
- return 0;
+ return pm_runtime_force_suspend(dev);
}
static int of_fsl_espi_resume(struct device *dev)