Skip to content

Commit fafac55

Browse files
tiwaibroonie
authored andcommitted
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: 16e1bcc ("ASoC: tegra: Add Tegra210 based AHUB 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 1337f2c commit fafac55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/tegra/tegra210_ahub.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static const struct of_device_id tegra_ahub_of_match[] = {
564564
};
565565
MODULE_DEVICE_TABLE(of, tegra_ahub_of_match);
566566

567-
static int tegra_ahub_runtime_suspend(struct device *dev)
567+
static int __maybe_unused tegra_ahub_runtime_suspend(struct device *dev)
568568
{
569569
struct tegra_ahub *ahub = dev_get_drvdata(dev);
570570

@@ -576,7 +576,7 @@ static int tegra_ahub_runtime_suspend(struct device *dev)
576576
return 0;
577577
}
578578

579-
static int tegra_ahub_runtime_resume(struct device *dev)
579+
static int __maybe_unused tegra_ahub_runtime_resume(struct device *dev)
580580
{
581581
struct tegra_ahub *ahub = dev_get_drvdata(dev);
582582
int err;

0 commit comments

Comments
 (0)