summaryrefslogtreecommitdiff
path: root/sound/soc/amd
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-07-02 19:44:29 +0300
committerMark Brown <broonie@kernel.org>2020-07-07 14:37:31 +0300
commit41e4a5b32af6ccec4e11a1cbd20c5569d20faa24 (patch)
tree045fcc8ebca12e0bb7548216bd67a753fa2b1721 /sound/soc/amd
parentdc1aff7f0d1b79e17026e08b14d7bb60ccdae1c8 (diff)
downloadlinux-41e4a5b32af6ccec4e11a1cbd20c5569d20faa24.tar.xz
ASoC: amd: acp-rt5645: fix 'defined but not used' warning
Fix W=1 warning Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200702164433.162815-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd')
-rw-r--r--sound/soc/amd/acp-rt5645.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/amd/acp-rt5645.c b/sound/soc/amd/acp-rt5645.c
index 73b31f88a6b5..87f0060e771f 100644
--- a/sound/soc/amd/acp-rt5645.c
+++ b/sound/soc/amd/acp-rt5645.c
@@ -182,11 +182,13 @@ static int cz_probe(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_ACPI
static const struct acpi_device_id cz_audio_acpi_match[] = {
{ "AMDI1002", 0 },
{},
};
MODULE_DEVICE_TABLE(acpi, cz_audio_acpi_match);
+#endif
static struct platform_driver cz_pcm_driver = {
.driver = {