Commit 07ac6709 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: codecs: es8316: fix 'defined but not used' warning

Fix W=1 warning

sound/soc/codecs/es8316.c:842:36: warning: 'es8316_acpi_match' defined
but not used [-Wunused-const-variable=]
  842 | static const struct acpi_device_id es8316_acpi_match[] = {
      |                                    ^~~~~~~~~~~~~~~~~
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200707190612.97799-12-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent fbcde4ff
...@@ -839,11 +839,13 @@ static const struct of_device_id es8316_of_match[] = { ...@@ -839,11 +839,13 @@ static const struct of_device_id es8316_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, es8316_of_match); MODULE_DEVICE_TABLE(of, es8316_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id es8316_acpi_match[] = { static const struct acpi_device_id es8316_acpi_match[] = {
{"ESSX8316", 0}, {"ESSX8316", 0},
{}, {},
}; };
MODULE_DEVICE_TABLE(acpi, es8316_acpi_match); MODULE_DEVICE_TABLE(acpi, es8316_acpi_match);
#endif
static struct i2c_driver es8316_i2c_driver = { static struct i2c_driver es8316_i2c_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment