diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2017-11-10 09:54:42 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2017-11-10 16:15:09 -0500 |
| commit | 7e6358ec3b6f69815a42af6203219584a80d4e22 (patch) | |
| tree | c0238a2a67c5ce43e47a851b7cb35ede23970b5f | |
| parent | e9c50aa6bd3996924b5fd87ab59289888cd5704a (diff) | |
ASoC: rt5514: mark PM functions as __maybe_unused
The new functions are only used when CONFIG_PM is enabled,
leading to a harmless warning:
sound/soc/codecs/rt5514-spi.c:474:12: error: 'rt5514_resume' defined but not used [-Werror=unused-function]
sound/soc/codecs/rt5514-spi.c:464:12: error: 'rt5514_suspend' defined but not used [-Werror=unused-function]
This marks them as __maybe_unused to make the build silent
again.
Fixes: 58f1c07d23cd ("ASoC: rt5514: Voice wakeup support.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/codecs/rt5514-spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c index 36e0a58ffc87..2df91db765ac 100644 --- a/sound/soc/codecs/rt5514-spi.c +++ b/sound/soc/codecs/rt5514-spi.c | |||
| @@ -461,7 +461,7 @@ static int rt5514_spi_probe(struct spi_device *spi) | |||
| 461 | return 0; | 461 | return 0; |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | static int rt5514_suspend(struct device *dev) | 464 | static int __maybe_unused rt5514_suspend(struct device *dev) |
| 465 | { | 465 | { |
| 466 | int irq = to_spi_device(dev)->irq; | 466 | int irq = to_spi_device(dev)->irq; |
| 467 | 467 | ||
| @@ -471,7 +471,7 @@ static int rt5514_suspend(struct device *dev) | |||
| 471 | return 0; | 471 | return 0; |
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | static int rt5514_resume(struct device *dev) | 474 | static int __maybe_unused rt5514_resume(struct device *dev) |
| 475 | { | 475 | { |
| 476 | struct snd_soc_platform *platform = snd_soc_lookup_platform(dev); | 476 | struct snd_soc_platform *platform = snd_soc_lookup_platform(dev); |
| 477 | struct rt5514_dsp *rt5514_dsp = | 477 | struct rt5514_dsp *rt5514_dsp = |
