summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_easrc_m2m.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-07-23 13:22:28 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:48:47 +0800
commit1a1a2bb13e0971ec9442123b51174bcfd3a0a809 (patch)
treeb6963c44317e744fae65f58b40409664bb962b21 /sound/soc/fsl/fsl_easrc_m2m.c
parentfaa039ded98c2a24f288bde3cfeabc5dc0164cc5 (diff)
MLK-22295-2: ASoC: fsl_easrc: Fix build warning with CONFIG_PM_SLEEP=n
Fix build warning with CONFIG_PM_SLEEP=n, the message is In file included from sound/soc/fsl/fsl_easrc.c:2204:0: sound/soc/fsl/fsl_easrc_m2m.c:960:13: warning: ‘fsl_easrc_m2m_resume’ defined but not used [-Wunused-function] static void fsl_easrc_m2m_resume(struct fsl_easrc *easrc) ^~~~~~~~~~~~~~~~~~~~ sound/soc/fsl/fsl_easrc_m2m.c:927:13: warning: ‘fsl_easrc_m2m_suspend’ defined but not used [-Wunused-function] static void fsl_easrc_m2m_suspend(struct fsl_easrc *easrc) ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com> (cherry picked from commit 0b6e34f8aaac3a6e5a5e1459a9fc6a42d8a8c127)
Diffstat (limited to 'sound/soc/fsl/fsl_easrc_m2m.c')
-rw-r--r--sound/soc/fsl/fsl_easrc_m2m.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_easrc_m2m.c b/sound/soc/fsl/fsl_easrc_m2m.c
index 38abfc8a7791..bb82dbd99e55 100644
--- a/sound/soc/fsl/fsl_easrc_m2m.c
+++ b/sound/soc/fsl/fsl_easrc_m2m.c
@@ -943,6 +943,7 @@ static int fsl_easrc_m2m_init(struct fsl_easrc *easrc)
return ret;
}
+#ifdef CONFIG_PM_SLEEP
static void fsl_easrc_m2m_suspend(struct fsl_easrc *easrc)
{
struct fsl_easrc_context *ctx;
@@ -980,3 +981,4 @@ static void fsl_easrc_m2m_resume(struct fsl_easrc *easrc)
{
/* null */
}
+#endif