linux/sound/soc/ti
Arnd Bergmann 8ca5104715
ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM
Building with clang shows a variable that is only used by the
suspend/resume functions but defined outside of their #ifdef block:

sound/soc/ti/davinci-mcasp.c:48:12: error: variable 'context_regs' is not needed and will not be emitted

We commonly fix these by marking the PM functions as __maybe_unused,
but here that would grow the davinci_mcasp structure, so instead
add another #ifdef here.

Fixes: 1cc0c054f3 ("ASoC: davinci-mcasp: Convert the context save/restore to use array")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-03-11 16:31:35 +00:00
..
Kconfig
Makefile
ams-delta.c
davinci-evm.c
davinci-i2s.c
davinci-i2s.h
davinci-mcasp.c ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM 2019-03-11 16:31:35 +00:00
davinci-mcasp.h
davinci-vcif.c
edma-pcm.c
edma-pcm.h
n810.c
omap-abe-twl6040.c
omap-dmic.c
omap-dmic.h
omap-hdmi.c
omap-mcbsp-priv.h
omap-mcbsp-st.c
omap-mcbsp.c
omap-mcbsp.h
omap-mcpdm.c
omap-mcpdm.h
omap-twl4030.c
omap3pandora.c
osk5912.c
rx51.c
sdma-pcm.c
sdma-pcm.h