Skip to content

Commit 20f12f2

Browse files
arndbbroonie
authored andcommitted
ASoC: cs35l33: mark PM functions as __maybe_unused
The newly added cs35l33 driver produces a harmless warning when CONFIG_PM is disabled: sound/soc/codecs/cs35l33.c:908:12: error: 'cs35l33_runtime_suspend' defined but not used [-Werror=unused-function] sound/soc/codecs/cs35l33.c:868:12: error: 'cs35l33_runtime_resume' defined but not used [-Werror=unused-function] This adds __maybe_unused annotations to shut up the warning regardless of the configuration. Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Paul Handrigan <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 262329f commit 20f12f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/cs35l33.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ static const struct regmap_config cs35l33_regmap = {
862862
.use_single_rw = true,
863863
};
864864

865-
static int cs35l33_runtime_resume(struct device *dev)
865+
static int __maybe_unused cs35l33_runtime_resume(struct device *dev)
866866
{
867867
struct cs35l33_private *cs35l33 = dev_get_drvdata(dev);
868868
int ret;
@@ -902,7 +902,7 @@ static int cs35l33_runtime_resume(struct device *dev)
902902
return ret;
903903
}
904904

905-
static int cs35l33_runtime_suspend(struct device *dev)
905+
static int __maybe_unused cs35l33_runtime_suspend(struct device *dev)
906906
{
907907
struct cs35l33_private *cs35l33 = dev_get_drvdata(dev);
908908

0 commit comments

Comments
 (0)