mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
ASoC: tegra: tegra186_dspk: Fix compile warning with CONFIG_PM=n
Fix trivial compile warnings wrt unused functions by adding
__maybe_unused prefix:
sound/soc/tegra/tegra186_dspk.c:74:12: warning: 'tegra186_dspk_runtime_suspend' defined but not used [-Wunused-function]
sound/soc/tegra/tegra186_dspk.c:86:12: warning: 'tegra186_dspk_runtime_resume' defined but not used [-Wunused-function]
Fixes: 327ef6470266 ("ASoC: tegra: Add Tegra186 based DSPK driver")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200803141850.23713-2-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Sameer Pujar
parent
8a0b5bc4f8
commit
1e04318390
@@ -71,7 +71,7 @@ static int tegra186_dspk_put_control(struct snd_kcontrol *kcontrol,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tegra186_dspk_runtime_suspend(struct device *dev)
|
static int __maybe_unused tegra186_dspk_runtime_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct tegra186_dspk *dspk = dev_get_drvdata(dev);
|
struct tegra186_dspk *dspk = dev_get_drvdata(dev);
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ static int tegra186_dspk_runtime_suspend(struct device *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tegra186_dspk_runtime_resume(struct device *dev)
|
static int __maybe_unused tegra186_dspk_runtime_resume(struct device *dev)
|
||||||
{
|
{
|
||||||
struct tegra186_dspk *dspk = dev_get_drvdata(dev);
|
struct tegra186_dspk *dspk = dev_get_drvdata(dev);
|
||||||
int err;
|
int err;
|
||||||
|
|||||||
Reference in New Issue
Block a user