Skip to content

Commit d8703ce

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

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/clk/clk-si514.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ static const struct regmap_config si514_regmap_config = {
327327
.volatile_reg = si514_regmap_is_volatile,
328328
};
329329

330-
static int si514_probe(struct i2c_client *client,
331-
const struct i2c_device_id *id)
330+
static int si514_probe(struct i2c_client *client)
332331
{
333332
struct clk_si514 *data;
334333
struct clk_init_data init;
@@ -394,7 +393,7 @@ static struct i2c_driver si514_driver = {
394393
.name = "si514",
395394
.of_match_table = clk_si514_of_match,
396395
},
397-
.probe = si514_probe,
396+
.probe_new = si514_probe,
398397
.remove = si514_remove,
399398
.id_table = si514_id,
400399
};

0 commit comments

Comments
 (0)