Skip to content

Commit 5baa12c

Browse files
skittbebarino
authored andcommitted
clk: renesas-pcie: use simple i2c probe function
The i2c probe function here doesn't use the id information provided in its second argument, so the single-parameter i2c probe function ("probe_new") can be used instead. This avoids scanning the identifier tables during probes. Signed-off-by: Stephen Kitt <steve@sk2.org> Link: https://lore.kernel.org/r/20220407151831.2371706-11-steve@sk2.org Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 2b349b8 commit 5baa12c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/clk/clk-renesas-pcie.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ rs9_of_clk_get(struct of_phandle_args *clkspec, void *data)
213213
return rs9->clk_dif[idx];
214214
}
215215

216-
static int rs9_probe(struct i2c_client *client, const struct i2c_device_id *id)
216+
static int rs9_probe(struct i2c_client *client)
217217
{
218218
unsigned char name[5] = "DIF0";
219219
struct rs9_driver_data *rs9;
@@ -312,7 +312,7 @@ static struct i2c_driver rs9_driver = {
312312
.pm = &rs9_pm_ops,
313313
.of_match_table = clk_rs9_of_match,
314314
},
315-
.probe = rs9_probe,
315+
.probe_new = rs9_probe,
316316
.id_table = rs9_id,
317317
};
318318
module_i2c_driver(rs9_driver);

0 commit comments

Comments
 (0)