return 0;
}
-#ifdef CONFIG_PM
#ifdef CONFIG_PM_RUNTIME
static int hsw_pcm_runtime_idle(struct device *dev)
#define hsw_pcm_runtime_resume NULL
#endif
+#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PM_RUNTIME)
+
static void hsw_pcm_complete(struct device *dev)
{
struct hsw_priv_data *pdata = dev_get_drvdata(dev);
return 0;
}
+#else
+#define hsw_pcm_prepare NULL
+#define hsw_pcm_complete NULL
+#endif
+
static const struct dev_pm_ops hsw_pcm_pm = {
.runtime_idle = hsw_pcm_runtime_idle,
.runtime_suspend = hsw_pcm_runtime_suspend,
.prepare = hsw_pcm_prepare,
.complete = hsw_pcm_complete,
};
-#else
-#define hsw_pcm_pm NULL
-#endif
static struct platform_driver hsw_pcm_driver = {
.driver = {