]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi-fsl-espi.c
spi: fsl-espi: simplify of_fsl_espi_suspend
[karo-tx-linux.git] / drivers / spi / spi-fsl-espi.c
index b5feae31fcc08b0aac1015690e6a4d949dc91dec..2635a33b8e98476ad06d4ee01416aa2c9b50ae6c 100644 (file)
@@ -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)