Commit 823279c374669a15a139a29b891dc0d7460262c6

Authored by Takashi Iwai
Committed by Mark Brown
1 parent 7543f16a04

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

Fix trivial compile warnings wrt unused functions by adding
__maybe_unused prefix:
  sound/soc/tegra/tegra210_i2s.c:167:12: warning: 'tegra210_i2s_runtime_suspend' defined but not used [-Wunused-function]
  sound/soc/tegra/tegra210_i2s.c:179:12: warning: 'tegra210_i2s_runtime_resume' defined but not used [-Wunused-function]

Fixes: c0bfa98349d1 ("ASoC: tegra: Add Tegra210 based I2S driver")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200803141850.23713-6-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_i2s.c
... ... @@ -164,7 +164,7 @@
164 164 return tegra210_i2s_sw_reset(compnt, is_playback);
165 165 }
166 166  
167   -static int tegra210_i2s_runtime_suspend(struct device *dev)
  167 +static int __maybe_unused tegra210_i2s_runtime_suspend(struct device *dev)
168 168 {
169 169 struct tegra210_i2s *i2s = dev_get_drvdata(dev);
170 170  
... ... @@ -176,7 +176,7 @@
176 176 return 0;
177 177 }
178 178  
179   -static int tegra210_i2s_runtime_resume(struct device *dev)
  179 +static int __maybe_unused tegra210_i2s_runtime_resume(struct device *dev)
180 180 {
181 181 struct tegra210_i2s *i2s = dev_get_drvdata(dev);
182 182 int err;