[PATCH 2/6] ASoC: amd: acp-rt5645: fix 'defined but not used' warning

From: Pierre-Louis Bossart
Date: Thu Jul 02 2020 - 12:44:58 EST


Fix W=1 warning

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@xxxxxxxxxxxxxxx>
---
sound/soc/amd/acp-rt5645.c | 2 ++
1 file changed, 2 insertions(+)

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 = {
--
2.25.1