ASoC: max9860: switch to using .probe_new
authorPeter Rosin <peda@axentia.se>
Wed, 11 Apr 2018 12:42:37 +0000 (14:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 16 Apr 2018 10:53:37 +0000 (11:53 +0100)
Use the new probe style for i2c drivers.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max9860.c

index 5bbf889ad98eb6189702f6751cc161e211f00d47..96b2db3f2ddd3a04a26ebbf5061c03988cc357eb 100644 (file)
@@ -598,8 +598,7 @@ static const struct dev_pm_ops max9860_pm_ops = {
        SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL)
 };
 
-static int max9860_probe(struct i2c_client *i2c,
-                        const struct i2c_device_id *id)
+static int max9860_probe(struct i2c_client *i2c)
 {
        struct device *dev = &i2c->dev;
        struct max9860_priv *max9860;
@@ -736,7 +735,7 @@ static const struct of_device_id max9860_of_match[] = {
 MODULE_DEVICE_TABLE(of, max9860_of_match);
 
 static struct i2c_driver max9860_i2c_driver = {
-       .probe          = max9860_probe,
+       .probe_new      = max9860_probe,
        .remove         = max9860_remove,
        .id_table       = max9860_i2c_id,
        .driver         = {