summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_asrc_m2m.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2019-07-23 13:18:01 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:48:47 +0800
commitfaa039ded98c2a24f288bde3cfeabc5dc0164cc5 (patch)
tree61aeb9987369293f36f3fe7cdbaf7ddadd4bea09 /sound/soc/fsl/fsl_asrc_m2m.c
parent7740241513dd59f2efc323a845c09522508d38bf (diff)
MLK-22295-1: ASoC: fsl_asrc: fix build warning with CONFIG_PM_SLEEP=n
fix build warning with CONFIG_PM_SLEEP=n, the warning message is In file included from sound/soc/fsl/fsl_asrc.c:968:0: sound/soc/fsl/fsl_asrc_m2m.c:1021:13: warning: ‘fsl_asrc_m2m_resume’ defined but not used [-Wunused-function] static void fsl_asrc_m2m_resume(struct fsl_asrc *asrc_priv) ^~~~~~~~~~~~~~~~~~~ sound/soc/fsl/fsl_asrc_m2m.c:990:13: warning: ‘fsl_asrc_m2m_suspend’ defined but not used [-Wunused-function] static void fsl_asrc_m2m_suspend(struct fsl_asrc *asrc_priv) ^~~~~~~~~~~~~~~~~~~~ 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 a3ec5433cfd6fd2b90113a78d5045e04f6a8328c)
Diffstat (limited to 'sound/soc/fsl/fsl_asrc_m2m.c')
-rw-r--r--sound/soc/fsl/fsl_asrc_m2m.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_asrc_m2m.c b/sound/soc/fsl/fsl_asrc_m2m.c
index 9b60b8aeed69..ea4f863caee1 100644
--- a/sound/soc/fsl/fsl_asrc_m2m.c
+++ b/sound/soc/fsl/fsl_asrc_m2m.c
@@ -987,6 +987,7 @@ static int fsl_asrc_m2m_remove(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_PM_SLEEP
static void fsl_asrc_m2m_suspend(struct fsl_asrc *asrc_priv)
{
struct fsl_asrc_pair *pair;
@@ -1042,3 +1043,4 @@ static void fsl_asrc_m2m_resume(struct fsl_asrc *asrc_priv)
spin_unlock_irqrestore(&asrc_priv->lock, lock_flags);
}
}
+#endif