@@ -1525,7 +1525,7 @@ int intel_master_process_wakeen_event(struct platform_device *pdev)
* PM calls
*/
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
static int intel_suspend(struct device *dev)
{
@@ -1562,6 +1562,9 @@ static int intel_suspend(struct device *dev)
return 0;
}
+#endif
+
+#ifdef CONFIG_PM
static int intel_suspend_runtime(struct device *dev)
{
@@ -1624,6 +1627,9 @@ static int intel_suspend_runtime(struct device *dev)
return ret;
}
+#endif
+
+#ifdef CONFIG_PM_SLEEP
static int intel_resume(struct device *dev)
{
@@ -1691,6 +1697,9 @@ static int intel_resume(struct device *dev)
return ret;
}
+#endif
+
+#ifdef CONFIG_PM
static int intel_resume_runtime(struct device *dev)
{
@@ -1797,7 +1806,6 @@ static int intel_resume_runtime(struct device *dev)
return ret;
}
-
#endif
static const struct dev_pm_ops intel_pm = {