From: Heiner Kallweit Date: Tue, 15 Nov 2016 20:37:17 +0000 (+0100) Subject: spi: fsl-espi: simplify of_fsl_espi_suspend X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a9a813ddc505279efd94b2b8ff9ead0f7e005b63;p=linux-beck.git spi: fsl-espi: simplify of_fsl_espi_suspend Simplify of_fsl_espi_suspend a little. Signed-off-by: Heiner Kallweit Signed-off-by: Mark Brown --- 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)