Commit 5bba6d37 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Stephen Boyd

clk: vc5: Use i2c .probe_new

The old .probe is "soon to be deprecated". Use the new, simpler form.
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Link: https://lore.kernel.org/r/20210928095041.17116-1-luca@lucaceresoli.netSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent de5169ac
......@@ -905,7 +905,7 @@ static int vc5_get_output_config(struct i2c_client *client,
static const struct of_device_id clk_vc5_of_match[];
static int vc5_probe(struct i2c_client *client, const struct i2c_device_id *id)
static int vc5_probe(struct i2c_client *client)
{
unsigned int oe, sd, src_mask = 0, src_val = 0;
struct vc5_driver_data *vc5;
......@@ -1244,7 +1244,7 @@ static struct i2c_driver vc5_driver = {
.pm = &vc5_pm_ops,
.of_match_table = clk_vc5_of_match,
},
.probe = vc5_probe,
.probe_new = vc5_probe,
.remove = vc5_remove,
.id_table = vc5_id,
};
......
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