summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-06-09 23:26:54 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-06-09 23:26:54 +0200
commit0023dbc37a48843f5d0189c530c8c8872a14bac3 (patch)
tree825b5f312e6761e1994718f60888d03c853a0c4f
parent64578b59ff73a1a96f166cf518f58477285117f4 (diff)
ASoC: fsl_sai_ac97: fix compilation without suspend/resume
Provide suspend/resume defines to fix compilation without PM_SLEEP.
-rw-r--r--sound/soc/fsl/fsl_sai_ac97.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_sai_ac97.c b/sound/soc/fsl/fsl_sai_ac97.c
index f487527b4f6c..5053c4fc135c 100644
--- a/sound/soc/fsl/fsl_sai_ac97.c
+++ b/sound/soc/fsl/fsl_sai_ac97.c
@@ -1294,6 +1294,9 @@ static int fsl_sai_ac97_resume(struct device *dev)
return 0;
}
+#else
+#define fsl_sai_ac97_suspend NULL
+#define fsl_sai_ac97_resume NULL
#endif /* CONFIG_PM_SLEEP */
static const struct dev_pm_ops fsl_sai_ac97_pm = {