MLK-22295-2: ASoC: fsl_easrc: Fix build warning with CONFIG_PM_SLEEP=n
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 23 Jul 2019 05:22:28 +0000 (13:22 +0800)
committerShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 23 Jul 2019 07:24:32 +0000 (15:24 +0800)
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)

sound/soc/fsl/fsl_easrc_m2m.c

index 38abfc8..bb82dbd 100644 (file)
@@ -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