Message ID | 58c2b656-eca1-3a24-faef-f96838f670c4@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a9a813ddc505279efd94b2b8ff9ead0f7e005b63 |
Headers | show |
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 28b6e7f..4fbcc36 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -776,11 +776,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)
Simplify of_fsl_espi_suspend a little. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> --- drivers/spi/spi-fsl-espi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)