OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbcde4f
)
ASoC: codecs: es8316: fix 'defined but not used' warning
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Tue, 7 Jul 2020 19:06:10 +0000
(14:06 -0500)
committer
Mark Brown
<broonie@kernel.org>
Thu, 9 Jul 2020 20:56:48 +0000
(21:56 +0100)
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: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20200707190612.97799-12-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8316.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/es8316.c
b/sound/soc/codecs/es8316.c
index
36eef1f
..
70af35c
100644
(file)
--- a/
sound/soc/codecs/es8316.c
+++ b/
sound/soc/codecs/es8316.c
@@
-839,11
+839,13
@@
static const struct of_device_id es8316_of_match[] = {
};
MODULE_DEVICE_TABLE(of, es8316_of_match);
+#ifdef CONFIG_ACPI
static const struct acpi_device_id es8316_acpi_match[] = {
{"ESSX8316", 0},
{},
};
MODULE_DEVICE_TABLE(acpi, es8316_acpi_match);
+#endif
static struct i2c_driver es8316_i2c_driver = {
.driver = {