]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cx2072x: mark PM function as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jun 2019 11:06:15 +0000 (13:06 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2019 12:35:51 +0000 (13:35 +0100)
commit8c11002e0bba3c734ea1a17384307326505ee12c
tree9868b9a7b12df4f73ef45dde29bd26b4dd776659
parent7952cb0748e0820e0c7e6f4cb720bc7d36d172e4
ASoC: cx2072x: mark PM function as __maybe_unused

While the suspend function is already marked __maybe_unused,
the resume function is not, which leads to a warning when
CONFIG_PM is disabled:

sound/soc/codecs/cx2072x.c:1625:12: error: unused function 'cx2072x_runtime_resume' [-Werror,-Wunused-function]

Mark this one like the other one.

Fixes: cac6380e55b6 ("ASoC: Add support for Conexant CX2072X CODEC")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cx2072x.c