提交 e2d57591 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: wm9081: Remove #if IS_ENABLED(CONFIG_I2C)

wm9081 driver doesn't work without CONFIG_I2C anyway.
Let's remove #if IS_ENABLED(CONFIG_I2C)

And, this patch adds "depends on I2C" to Kconfig
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 1001354c
...@@ -1048,6 +1048,7 @@ config SND_SOC_WM8998 ...@@ -1048,6 +1048,7 @@ config SND_SOC_WM8998
config SND_SOC_WM9081 config SND_SOC_WM9081
tristate tristate
depends on I2C
config SND_SOC_WM9090 config SND_SOC_WM9090
tristate tristate
......
...@@ -1304,7 +1304,6 @@ static const struct regmap_config wm9081_regmap = { ...@@ -1304,7 +1304,6 @@ static const struct regmap_config wm9081_regmap = {
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_RBTREE,
}; };
#if IS_ENABLED(CONFIG_I2C)
static int wm9081_i2c_probe(struct i2c_client *i2c, static int wm9081_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
...@@ -1384,7 +1383,6 @@ static struct i2c_driver wm9081_i2c_driver = { ...@@ -1384,7 +1383,6 @@ static struct i2c_driver wm9081_i2c_driver = {
.remove = wm9081_i2c_remove, .remove = wm9081_i2c_remove,
.id_table = wm9081_i2c_id, .id_table = wm9081_i2c_id,
}; };
#endif
module_i2c_driver(wm9081_i2c_driver); module_i2c_driver(wm9081_i2c_driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册