From 756058e78582fce88353e7f834c200257fa4742d Mon Sep 17 00:00:00 2001 From: Ravindra Lokhande Date: Fri, 3 Jul 2015 14:29:38 +0530 Subject: [PATCH] ASoC: tegra-alt: use #ifdef for suspend/resume function suspend/resume function is used when CONFIG_PM_RUNTIME is defined, if this is not defined then compiler errors about unused-function. put suspend/resume function under #ifdef CONFIG_PM_RUNTIME. Change-Id: Ibad9d7a0528ed5be536e987075cbc26a71487d56 Signed-off-by: Ravindra Lokhande Reviewed-on: http://git-master/r/766222 Reviewed-on: http://git-master/r/769291 Reviewed-by: Sumit Bhattacharya Tested-by: Sumit Bhattacharya --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index 009d1c3d..eacc48e4 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -1556,6 +1556,7 @@ static int tegra210_adsp_admaif_hw_params(struct snd_pcm_substream *substream, return 0; } +#ifdef CONFIG_PM_RUNTIME static int tegra210_adsp_runtime_suspend(struct device *dev) { struct tegra210_adsp *adsp = dev_get_drvdata(dev); @@ -1589,6 +1590,7 @@ static int tegra210_adsp_runtime_resume(struct device *dev) return ret; } +#endif /* ADSP platform driver read/write call-back */ static int tegra210_adsp_read(struct snd_soc_component *component,