Commit 5b379b2b authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: mpq7920: Convert to use .probe_new

Use the new .probe_new instead.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200114124449.28408-2-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 489d6954
...@@ -260,8 +260,7 @@ static void mpq7920_parse_dt(struct device *dev, ...@@ -260,8 +260,7 @@ static void mpq7920_parse_dt(struct device *dev,
of_node_put(np); of_node_put(np);
} }
static int mpq7920_i2c_probe(struct i2c_client *client, static int mpq7920_i2c_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
struct mpq7920_regulator_info *info; struct mpq7920_regulator_info *info;
...@@ -321,7 +320,7 @@ static struct i2c_driver mpq7920_regulator_driver = { ...@@ -321,7 +320,7 @@ static struct i2c_driver mpq7920_regulator_driver = {
.name = "mpq7920", .name = "mpq7920",
.of_match_table = of_match_ptr(mpq7920_of_match), .of_match_table = of_match_ptr(mpq7920_of_match),
}, },
.probe = mpq7920_i2c_probe, .probe_new = mpq7920_i2c_probe,
.id_table = mpq7920_id, .id_table = mpq7920_id,
}; };
module_i2c_driver(mpq7920_regulator_driver); module_i2c_driver(mpq7920_regulator_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment