summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-omap2-mcspi.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c
index 0d69cb96442c..6c628a54e946 100644
--- a/drivers/spi/spi-omap2-mcspi.c
+++ b/drivers/spi/spi-omap2-mcspi.c
@@ -1467,20 +1467,6 @@ MODULE_ALIAS("platform:omap2_mcspi");
#ifdef CONFIG_SUSPEND
static int omap2_mcspi_suspend_noirq(struct device *dev)
{
- int error;
-
- /*
- * Make sure device gets idled if other drivers call SPI
- * functions between device_prepare() and device_complete()
- */
- error = pm_runtime_force_suspend(dev);
- if (error < 0) {
- dev_err(dev, "%s: force suspend failed: %i\n",
- __func__, error);
-
- return error;
- }
-
return pinctrl_pm_select_sleep_state(dev);
}
@@ -1495,14 +1481,6 @@ static int omap2_mcspi_resume_noirq(struct device *dev)
dev_warn(mcspi->dev, "%s: failed to set pins: %i\n",
__func__, error);
- error = pm_runtime_force_resume(mcspi->dev);
- if (error < 0) {
- dev_warn(mcspi->dev, "%s: force resume failed: %i\n",
- __func__, error);
-
- return error;
- }
-
return 0;
}