Commit 1337f2c5f104c84d5a943b2eb644db3eaf4a64e0

Authored by Takashi Iwai
Committed by Mark Brown
1 parent b191f01a37

ASoC: tegra: tegra210_admaif: Fix compile warning with CONFIG_PM=n

Fix trivial compile warnings wrt unused functions by adding
__maybe_unused prefix:
  sound/soc/tegra/tegra210_admaif.c:232:12: warning: 'tegra_admaif_runtime_resume' defined but not used [-Wunused-function]
  sound/soc/tegra/tegra210_ahub.c:567:12: warning: 'tegra_ahub_runtime_suspend' defined but not used [-Wunused-function]

Fixes: f74028e159bb ("ASoC: tegra: Add Tegra210 based ADMAIF driver")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200803141850.23713-3-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

sound/soc/tegra/tegra210_admaif.c
... ... @@ -219,7 +219,7 @@
219 219 .cache_type = REGCACHE_FLAT,
220 220 };
221 221  
222   -static int tegra_admaif_runtime_suspend(struct device *dev)
  222 +static int __maybe_unused tegra_admaif_runtime_suspend(struct device *dev)
223 223 {
224 224 struct tegra_admaif *admaif = dev_get_drvdata(dev);
225 225  
... ... @@ -229,7 +229,7 @@
229 229 return 0;
230 230 }
231 231  
232   -static int tegra_admaif_runtime_resume(struct device *dev)
  232 +static int __maybe_unused tegra_admaif_runtime_resume(struct device *dev)
233 233 {
234 234 struct tegra_admaif *admaif = dev_get_drvdata(dev);
235 235