Skip to content

Commit 55349ae

Browse files
skittbebarino
authored andcommitted
clk: max9485: 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-5-steve@sk2.org Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent eb5f909 commit 55349ae

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/clk/clk-max9485.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ max9485_of_clk_get(struct of_phandle_args *clkspec, void *data)
254254
return &drvdata->hw[idx].hw;
255255
}
256256

257-
static int max9485_i2c_probe(struct i2c_client *client,
258-
const struct i2c_device_id *id)
257+
static int max9485_i2c_probe(struct i2c_client *client)
259258
{
260259
struct max9485_driver_data *drvdata;
261260
struct device *dev = &client->dev;
@@ -377,7 +376,7 @@ static struct i2c_driver max9485_driver = {
377376
.pm = &max9485_pm_ops,
378377
.of_match_table = max9485_dt_ids,
379378
},
380-
.probe = max9485_i2c_probe,
379+
.probe_new = max9485_i2c_probe,
381380
.id_table = max9485_i2c_ids,
382381
};
383382
module_i2c_driver(max9485_driver);

0 commit comments

Comments
 (0)