Skip to content

Commit 7543f16

Browse files
tiwaibroonie
authored andcommitted
ASoC: tegra: tegra210_dmic: Fix compile warning with CONFIG_PM=n
Fix trivial compile warnings wrt unused functions by adding __maybe_unused prefix: sound/soc/tegra/tegra210_dmic.c:43:12: warning: 'tegra210_dmic_runtime_suspend' defined but not used [-Wunused-function] sound/soc/tegra/tegra210_dmic.c:55:12: warning: 'tegra210_dmic_runtime_resume' defined but not used [-Wunused-function] Fixes: 8c8ff98 ("ASoC: tegra: Add Tegra210 based DMIC 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 fafac55 commit 7543f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/tegra/tegra210_dmic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static const struct reg_default tegra210_dmic_reg_defaults[] = {
4040
{ TEGRA210_DMIC_LP_BIQUAD_1_COEF_4, 0x0 },
4141
};
4242

43-
static int tegra210_dmic_runtime_suspend(struct device *dev)
43+
static int __maybe_unused tegra210_dmic_runtime_suspend(struct device *dev)
4444
{
4545
struct tegra210_dmic *dmic = dev_get_drvdata(dev);
4646

@@ -52,7 +52,7 @@ static int tegra210_dmic_runtime_suspend(struct device *dev)
5252
return 0;
5353
}
5454

55-
static int tegra210_dmic_runtime_resume(struct device *dev)
55+
static int __maybe_unused tegra210_dmic_runtime_resume(struct device *dev)
5656
{
5757
struct tegra210_dmic *dmic = dev_get_drvdata(dev);
5858
int err;

0 commit comments

Comments
 (0)