Commit fafac559604bd2e74f5f6febd58682df3738cdd9

Authored by Takashi Iwai
Committed by Mark Brown
1 parent 1337f2c5f1

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

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

Fixes: 16e1bcc2caf4 ("ASoC: tegra: Add Tegra210 based AHUB driver")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200803141850.23713-4-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_ahub.c
... ... @@ -564,7 +564,7 @@
564 564 };
565 565 MODULE_DEVICE_TABLE(of, tegra_ahub_of_match);
566 566  
567   -static int tegra_ahub_runtime_suspend(struct device *dev)
  567 +static int __maybe_unused tegra_ahub_runtime_suspend(struct device *dev)
568 568 {
569 569 struct tegra_ahub *ahub = dev_get_drvdata(dev);
570 570  
... ... @@ -576,7 +576,7 @@
576 576 return 0;
577 577 }
578 578  
579   -static int tegra_ahub_runtime_resume(struct device *dev)
  579 +static int __maybe_unused tegra_ahub_runtime_resume(struct device *dev)
580 580 {
581 581 struct tegra_ahub *ahub = dev_get_drvdata(dev);
582 582 int err;