Skip to content

Commit 5b379b2

Browse files
AxelLinbroonie
authored andcommitted
regulator: mpq7920: Convert to use .probe_new
Use the new .probe_new instead. Signed-off-by: Axel Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 489d695 commit 5b379b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/mpq7920.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ static void mpq7920_parse_dt(struct device *dev,
260260
of_node_put(np);
261261
}
262262

263-
static int mpq7920_i2c_probe(struct i2c_client *client,
264-
const struct i2c_device_id *id)
263+
static int mpq7920_i2c_probe(struct i2c_client *client)
265264
{
266265
struct device *dev = &client->dev;
267266
struct mpq7920_regulator_info *info;
@@ -321,7 +320,7 @@ static struct i2c_driver mpq7920_regulator_driver = {
321320
.name = "mpq7920",
322321
.of_match_table = of_match_ptr(mpq7920_of_match),
323322
},
324-
.probe = mpq7920_i2c_probe,
323+
.probe_new = mpq7920_i2c_probe,
325324
.id_table = mpq7920_id,
326325
};
327326
module_i2c_driver(mpq7920_regulator_driver);

0 commit comments

Comments
 (0)