Skip to content

Commit 1337f2c

Browse files
tiwaibroonie
authored andcommitted
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: f74028e ("ASoC: tegra: Add Tegra210 based ADMAIF 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 b191f01 commit 1337f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/tegra/tegra210_admaif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static const struct regmap_config tegra186_admaif_regmap_config = {
219219
.cache_type = REGCACHE_FLAT,
220220
};
221221

222-
static int tegra_admaif_runtime_suspend(struct device *dev)
222+
static int __maybe_unused tegra_admaif_runtime_suspend(struct device *dev)
223223
{
224224
struct tegra_admaif *admaif = dev_get_drvdata(dev);
225225

@@ -229,7 +229,7 @@ static int tegra_admaif_runtime_suspend(struct device *dev)
229229
return 0;
230230
}
231231

232-
static int tegra_admaif_runtime_resume(struct device *dev)
232+
static int __maybe_unused tegra_admaif_runtime_resume(struct device *dev)
233233
{
234234
struct tegra_admaif *admaif = dev_get_drvdata(dev);
235235

0 commit comments

Comments
 (0)