]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5514: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 14:54:42 +0000 (15:54 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 10 Nov 2017 21:15:09 +0000 (21:15 +0000)
commitf10f0af1826d0ee5b2060b84e3daf95119dd08a9
treec0238a2a67c5ce43e47a851b7cb35ede23970b5f
parentbff62a504eb4312fa16021aaad1cc751cd6e80dd
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: 2892bb8db021 ("ASoC: rt5514: Voice wakeup support.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c