Skip to content

Commit

Permalink
mux: adg792a: switch to using .probe_new
Browse files Browse the repository at this point in the history
Use the new probe style for i2c drivers.

Signed-off-by: Peter Rosin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
peda-r authored and gregkh committed Apr 23, 2018
1 parent 24b6d3e commit 2c36357
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/mux/adg792a.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ static const struct mux_control_ops adg792a_ops = {
.set = adg792a_set,
};

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

0 comments on commit 2c36357

Please sign in to comment.