mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
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 <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/766222 Reviewed-on: http://git-master/r/769291 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
e493cee37f
commit
756058e785
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user