summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tfa9879.c
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2018-04-13 00:14:37 +0300
committerMark Brown <broonie@kernel.org>2018-04-16 13:53:49 +0300
commite32259397e0166a7cc366e182f6f4297977d6c10 (patch)
tree4bbe932381fb3576946acdd5765fc0b7858a3dcb /sound/soc/codecs/tfa9879.c
parent42a2b6746955eb0265c2656282c7a424b51a54f1 (diff)
downloadlinux-e32259397e0166a7cc366e182f6f4297977d6c10.tar.xz
ASoC: tfa9879: switch to using .probe_new
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tfa9879.c')
-rw-r--r--sound/soc/codecs/tfa9879.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c
index c30e0efdbe39..4ed020262a27 100644
--- a/sound/soc/codecs/tfa9879.c
+++ b/sound/soc/codecs/tfa9879.c
@@ -277,8 +277,7 @@ static struct snd_soc_dai_driver tfa9879_dai = {
.ops = &tfa9879_dai_ops,
};
-static int tfa9879_i2c_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int tfa9879_i2c_probe(struct i2c_client *i2c)
{
struct tfa9879_priv *tfa9879;
int i;
@@ -319,7 +318,7 @@ static struct i2c_driver tfa9879_i2c_driver = {
.name = "tfa9879",
.of_match_table = tfa9879_of_match,
},
- .probe = tfa9879_i2c_probe,
+ .probe_new = tfa9879_i2c_probe,
.id_table = tfa9879_i2c_id,
};