regulator: mpq7920: Convert to use .probe_new
authorAxel Lin <axel.lin@ingics.com>
Tue, 14 Jan 2020 12:44:49 +0000 (20:44 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2020 15:25:00 +0000 (15:25 +0000)
Use the new .probe_new instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200114124449.28408-2-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mpq7920.c

index b133bab..54c862e 100644 (file)
@@ -260,8 +260,7 @@ static void mpq7920_parse_dt(struct device *dev,
        of_node_put(np);
 }
 
-static int mpq7920_i2c_probe(struct i2c_client *client,
-                                   const struct i2c_device_id *id)
+static int mpq7920_i2c_probe(struct i2c_client *client)
 {
        struct device *dev = &client->dev;
        struct mpq7920_regulator_info *info;
@@ -321,7 +320,7 @@ static struct i2c_driver mpq7920_regulator_driver = {
                .name = "mpq7920",
                .of_match_table = of_match_ptr(mpq7920_of_match),
        },
-       .probe = mpq7920_i2c_probe,
+       .probe_new = mpq7920_i2c_probe,
        .id_table = mpq7920_id,
 };
 module_i2c_driver(mpq7920_regulator_driver);