diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-09-04 15:54:48 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-04 15:45:12 +0100 |
commit | 7051334672e54fae67e02d5d3296fb62b3343be7 (patch) | |
tree | 48f9a4a22997c463ce0a94df6680ed4ad7668220 /sound/soc | |
parent | f31877a16b0926dea4d1d9b72917a3eca9be19b6 (diff) | |
download | linux-stable-7051334672e54fae67e02d5d3296fb62b3343be7.tar.gz linux-stable-7051334672e54fae67e02d5d3296fb62b3343be7.tar.bz2 linux-stable-7051334672e54fae67e02d5d3296fb62b3343be7.zip |
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.c | 4 |
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; |