ASoC: SOF: Intel: Baytrail: fix 'defined but not used' warnings
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 29 May 2020 15:04:08 +0000 (10:04 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 15:55:31 +0000 (16:55 +0100)
commitaf89e7dac521f5e087b6b2706bb0623107f74c83
tree10de6bfebbb0d2387ab6810a01ebd7958ad36eec
parent68f8043ed13e636c6f04ac1c0831e17681d392ab
ASoC: SOF: Intel: Baytrail: fix 'defined but not used' warnings

With the allmodconfig option, CONFIG_SND_SOC_SOF_BAYTRAIL is disabled
due to mutual exclusion with the legacy driver. This generates
'defined by not used' warnings.

suspend/resume/remove are only supported for Baytrail for now, so move
the code under the CONFIG_SND_SOC_SOF_BAYTRAIL checks.

Fixes: ddcccd543f5d ("ASoC: SOF: Intel: byt: Add PM callbacks")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200529150408.17236-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/byt.c