Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: mpq7920: Convert to use .probe_new

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>

authored by

Axel Lin and committed by
Mark Brown
5b379b2b 489d6954

+2 -3
+2 -3
drivers/regulator/mpq7920.c
··· 260 260 of_node_put(np); 261 261 } 262 262 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) 265 264 { 266 265 struct device *dev = &client->dev; 267 266 struct mpq7920_regulator_info *info; ··· 320 321 .name = "mpq7920", 321 322 .of_match_table = of_match_ptr(mpq7920_of_match), 322 323 }, 323 - .probe = mpq7920_i2c_probe, 324 + .probe_new = mpq7920_i2c_probe, 324 325 .id_table = mpq7920_id, 325 326 }; 326 327 module_i2c_driver(mpq7920_regulator_driver);