]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs35l33: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 29 Jun 2016 14:33:17 +0000 (16:33 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jun 2016 16:23:12 +0000 (17:23 +0100)
commit910aa376a3301af0b9c2577e87b3f994f88b2c6f
tree89dfa9269998fbabd83740fb7954d1406c147208
parentcb05915c7a4a8f88c10f58a11adb6f947584a8e6
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 <arnd@arndb.de>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l33.c