未验证 提交 ce7ed845 编写于 作者: P Pierre-Louis Bossart 提交者: Mark Brown

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: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200707190612.97799-13-pierre-louis.bossart@linux.intel.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 07ac6709
...@@ -944,14 +944,6 @@ static const struct regmap_config max98390_regmap = { ...@@ -944,14 +944,6 @@ static const struct regmap_config max98390_regmap = {
.cache_type = REGCACHE_RBTREE, .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, static int max98390_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册