From 1a1a2bb13e0971ec9442123b51174bcfd3a0a809 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Tue, 23 Jul 2019 13:22:28 +0800 Subject: MLK-22295-2: ASoC: fsl_easrc: Fix build warning with CONFIG_PM_SLEEP=n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Daniel Baluta Reviewed-by: Viorel Suman (cherry picked from commit 0b6e34f8aaac3a6e5a5e1459a9fc6a42d8a8c127) --- sound/soc/fsl/fsl_easrc_m2m.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound/soc/fsl/fsl_easrc_m2m.c') 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 -- cgit v1.2.3