summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-09-04 16:54:48 +0300
committerMark Brown <broonie@kernel.org>2017-09-04 17:45:12 +0300
commit7051334672e54fae67e02d5d3296fb62b3343be7 (patch)
tree48f9a4a22997c463ce0a94df6680ed4ad7668220 /sound/soc
parentf31877a16b0926dea4d1d9b72917a3eca9be19b6 (diff)
downloadlinux-7051334672e54fae67e02d5d3296fb62b3343be7.tar.xz
ASoC: cs43130: Fix unused compiler warnings for PM runtime
Add __maybe_unused prefix for addressing the following warnings: sound/soc/codecs/cs43130.c:2615:12: warning: ‘cs43130_runtime_resume’ defined but not used [-Wunused-function] sound/soc/codecs/cs43130.c:2596:12: warning: ‘cs43130_runtime_suspend’ defined but not used [-Wunused-function] Fixes: 8f1e5bf9b440 ("ASoC: cs43130: Add support for CS43130 codec") Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/cs43130.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs43130.c b/sound/soc/codecs/cs43130.c
index 4229a95e2859..643e37fc218e 100644
--- a/sound/soc/codecs/cs43130.c
+++ b/sound/soc/codecs/cs43130.c
@@ -2597,7 +2597,7 @@ static int cs43130_i2c_remove(struct i2c_client *client)
return 0;
}
-static int cs43130_runtime_suspend(struct device *dev)
+static int __maybe_unused cs43130_runtime_suspend(struct device *dev)
{
struct cs43130_private *cs43130 = dev_get_drvdata(dev);
@@ -2616,7 +2616,7 @@ static int cs43130_runtime_suspend(struct device *dev)
return 0;
}
-static int cs43130_runtime_resume(struct device *dev)
+static int __maybe_unused cs43130_runtime_resume(struct device *dev)
{
struct cs43130_private *cs43130 = dev_get_drvdata(dev);
int ret;