Skip to content

Commit 823279c

Browse files
tiwaibroonie
authored andcommitted
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: c0bfa98 ("ASoC: tegra: Add Tegra210 based I2S driver") Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7543f16 commit 823279c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/tegra/tegra210_i2s.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static int tegra210_i2s_init(struct snd_soc_dapm_widget *w,
164164
return tegra210_i2s_sw_reset(compnt, is_playback);
165165
}
166166

167-
static int tegra210_i2s_runtime_suspend(struct device *dev)
167+
static int __maybe_unused tegra210_i2s_runtime_suspend(struct device *dev)
168168
{
169169
struct tegra210_i2s *i2s = dev_get_drvdata(dev);
170170

@@ -176,7 +176,7 @@ static int tegra210_i2s_runtime_suspend(struct device *dev)
176176
return 0;
177177
}
178178

179-
static int tegra210_i2s_runtime_resume(struct device *dev)
179+
static int __maybe_unused tegra210_i2s_runtime_resume(struct device *dev)
180180
{
181181
struct tegra210_i2s *i2s = dev_get_drvdata(dev);
182182
int err;

0 commit comments

Comments
 (0)