1
0
Fork 0

mux: adg792a: switch to using .probe_new

Use the new probe style for i2c drivers.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Peter Rosin 2018-04-11 14:47:36 +02:00 committed by Greg Kroah-Hartman
parent 24b6d3eee1
commit 2c363576db
1 changed files with 2 additions and 3 deletions

View File

@ -58,8 +58,7 @@ static const struct mux_control_ops adg792a_ops = {
.set = adg792a_set, .set = adg792a_set,
}; };
static int adg792a_probe(struct i2c_client *i2c, static int adg792a_probe(struct i2c_client *i2c)
const struct i2c_device_id *id)
{ {
struct device *dev = &i2c->dev; struct device *dev = &i2c->dev;
struct mux_chip *mux_chip; struct mux_chip *mux_chip;
@ -144,7 +143,7 @@ static struct i2c_driver adg792a_driver = {
.name = "adg792a", .name = "adg792a",
.of_match_table = of_match_ptr(adg792a_of_match), .of_match_table = of_match_ptr(adg792a_of_match),
}, },
.probe = adg792a_probe, .probe_new = adg792a_probe,
.id_table = adg792a_id, .id_table = adg792a_id,
}; };
module_i2c_driver(adg792a_driver); module_i2c_driver(adg792a_driver);