Commit b191f01a3756f8d5d0b92bad0a07dac7e373d8be

Authored by Takashi Iwai
Committed by Mark Brown
1 parent ccff7bd468

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>

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

sound/soc/tegra/tegra186_dspk.c
... ... @@ -71,7 +71,7 @@
71 71 return 0;
72 72 }
73 73  
74   -static int tegra186_dspk_runtime_suspend(struct device *dev)
  74 +static int __maybe_unused tegra186_dspk_runtime_suspend(struct device *dev)
75 75 {
76 76 struct tegra186_dspk *dspk = dev_get_drvdata(dev);
77 77  
... ... @@ -83,7 +83,7 @@
83 83 return 0;
84 84 }
85 85  
86   -static int tegra186_dspk_runtime_resume(struct device *dev)
  86 +static int __maybe_unused tegra186_dspk_runtime_resume(struct device *dev)
87 87 {
88 88 struct tegra186_dspk *dspk = dev_get_drvdata(dev);
89 89 int err;