|
@@ -857,7 +857,7 @@ static int azx_resume(struct device *dev)
|
|
|
}
|
|
|
#endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */
|
|
|
|
|
|
-#ifdef CONFIG_PM_RUNTIME
|
|
|
+#ifdef CONFIG_PM
|
|
|
static int azx_runtime_suspend(struct device *dev)
|
|
|
{
|
|
|
struct snd_card *card = dev_get_drvdata(dev);
|
|
@@ -955,9 +955,6 @@ static int azx_runtime_idle(struct device *dev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#endif /* CONFIG_PM_RUNTIME */
|
|
|
-
|
|
|
-#ifdef CONFIG_PM
|
|
|
static const struct dev_pm_ops azx_pm = {
|
|
|
SET_SYSTEM_SLEEP_PM_OPS(azx_suspend, azx_resume)
|
|
|
SET_RUNTIME_PM_OPS(azx_runtime_suspend, azx_runtime_resume, azx_runtime_idle)
|