未验证 提交 e3225939 编写于 作者: P Peter Rosin 提交者: Mark Brown

ASoC: tfa9879: switch to using .probe_new

Use the new probe style for i2c drivers.
Signed-off-by: NPeter Rosin <peda@axentia.se>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 42a2b674
...@@ -277,8 +277,7 @@ static struct snd_soc_dai_driver tfa9879_dai = { ...@@ -277,8 +277,7 @@ static struct snd_soc_dai_driver tfa9879_dai = {
.ops = &tfa9879_dai_ops, .ops = &tfa9879_dai_ops,
}; };
static int tfa9879_i2c_probe(struct i2c_client *i2c, static int tfa9879_i2c_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct tfa9879_priv *tfa9879; struct tfa9879_priv *tfa9879;
int i; int i;
...@@ -319,7 +318,7 @@ static struct i2c_driver tfa9879_i2c_driver = { ...@@ -319,7 +318,7 @@ static struct i2c_driver tfa9879_i2c_driver = {
.name = "tfa9879", .name = "tfa9879",
.of_match_table = tfa9879_of_match, .of_match_table = tfa9879_of_match,
}, },
.probe = tfa9879_i2c_probe, .probe_new = tfa9879_i2c_probe,
.id_table = tfa9879_i2c_id, .id_table = tfa9879_i2c_id,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册