|
@@ -801,7 +801,7 @@ static int rockchip_spi_resume(struct device *dev)
|
|
|
}
|
|
|
#endif /* CONFIG_PM_SLEEP */
|
|
|
|
|
|
-#ifdef CONFIG_PM_RUNTIME
|
|
|
+#ifdef CONFIG_PM
|
|
|
static int rockchip_spi_runtime_suspend(struct device *dev)
|
|
|
{
|
|
|
struct spi_master *master = dev_get_drvdata(dev);
|
|
@@ -829,7 +829,7 @@ static int rockchip_spi_runtime_resume(struct device *dev)
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
|
-#endif /* CONFIG_PM_RUNTIME */
|
|
|
+#endif /* CONFIG_PM */
|
|
|
|
|
|
static const struct dev_pm_ops rockchip_spi_pm = {
|
|
|
SET_SYSTEM_SLEEP_PM_OPS(rockchip_spi_suspend, rockchip_spi_resume)
|