]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9341b42eddee7d07e2a0bddd04e9027bb20c855f
tree10de6bfebbb0d2387ab6810a01ebd7958ad36eec
parented0f691b30bde8d707974520be0b8c9604b5fa32
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: ea41c6d7ad47 ("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