diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-07-07 22:06:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-09 23:56:50 +0300 |
commit | 56bbfbfdab2b79d3b6e370750358702a7aa079ed (patch) | |
tree | 6f779e9599ced420439ed3e6b1447bc99b277d8a /sound/soc/codecs/rt5660.c | |
parent | ce7ed845eb60c119b033057815a4d1d7261367f9 (diff) | |
download | linux-56bbfbfdab2b79d3b6e370750358702a7aa079ed.tar.xz |
ASoC: codecs: rt*: fix 'defined but not used' warning
Fix W=1 warning when ACPI is not defined
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200707190612.97799-14-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5660.c')
-rw-r--r-- | sound/soc/codecs/rt5660.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c index 78371e51bc34..9e3813f7583d 100644 --- a/sound/soc/codecs/rt5660.c +++ b/sound/soc/codecs/rt5660.c @@ -1241,12 +1241,14 @@ static const struct of_device_id rt5660_of_match[] = { }; MODULE_DEVICE_TABLE(of, rt5660_of_match); +#ifdef CONFIG_ACPI static const struct acpi_device_id rt5660_acpi_match[] = { { "10EC5660", 0 }, { "10EC3277", 0 }, { }, }; MODULE_DEVICE_TABLE(acpi, rt5660_acpi_match); +#endif static int rt5660_parse_dt(struct rt5660_priv *rt5660, struct device *dev) { |