summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98390.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-07-07 14:06:11 -0500
committerMark Brown <broonie@kernel.org>2020-07-09 21:56:49 +0100
commitce7ed845eb60c119b033057815a4d1d7261367f9 (patch)
treee8a8a466adaf38b3dea56f0acac75d6614d558c0 /sound/soc/codecs/max98390.c
parent07ac670981fc5932ca3799ce7d96431d80afce0e (diff)
downloadlinux-stable-ce7ed845eb60c119b033057815a4d1d7261367f9.tar.gz
linux-stable-ce7ed845eb60c119b033057815a4d1d7261367f9.tar.bz2
linux-stable-ce7ed845eb60c119b033057815a4d1d7261367f9.zip
ASoC: codecs: max98390: fix 'defined but not used' warning
Fix W=1 warning and removed unused table. In this case this a duplicate of static const struct of_device_id max98390_of_match[] = { { .compatible = "maxim,max98390", }, {} }; MODULE_DEVICE_TABLE(of, max98390_of_match); already used in the rest of the code. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200707190612.97799-13-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98390.c')
-rw-r--r--sound/soc/codecs/max98390.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c
index b345e626956d..3e8094241645 100644
--- a/sound/soc/codecs/max98390.c
+++ b/sound/soc/codecs/max98390.c
@@ -944,14 +944,6 @@ static const struct regmap_config max98390_regmap = {
.cache_type = REGCACHE_RBTREE,
};
-#ifdef CONFIG_OF
-static const struct of_device_id max98390_dt_ids[] = {
- { .compatible = "maxim,max98390", },
- { }
-};
-MODULE_DEVICE_TABLE(of, max98390_dt_ids);
-#endif
-
static int max98390_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{