Skip to content

Commit 5bba6d3

Browse files
lucaceresolibebarino
authored andcommitted
clk: vc5: Use i2c .probe_new
The old .probe is "soon to be deprecated". Use the new, simpler form. Signed-off-by: Luca Ceresoli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent de5169a commit 5bba6d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/clk-versaclock5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ static int vc5_get_output_config(struct i2c_client *client,
905905

906906
static const struct of_device_id clk_vc5_of_match[];
907907

908-
static int vc5_probe(struct i2c_client *client, const struct i2c_device_id *id)
908+
static int vc5_probe(struct i2c_client *client)
909909
{
910910
unsigned int oe, sd, src_mask = 0, src_val = 0;
911911
struct vc5_driver_data *vc5;
@@ -1244,7 +1244,7 @@ static struct i2c_driver vc5_driver = {
12441244
.pm = &vc5_pm_ops,
12451245
.of_match_table = clk_vc5_of_match,
12461246
},
1247-
.probe = vc5_probe,
1247+
.probe_new = vc5_probe,
12481248
.remove = vc5_remove,
12491249
.id_table = vc5_id,
12501250
};

0 commit comments

Comments
 (0)