Skip to content

Commit adc00f6

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

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/clk/clk-si5341.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,7 @@ static const struct attribute *si5341_attributes[] = {
15471547
NULL
15481548
};
15491549

1550-
static int si5341_probe(struct i2c_client *client,
1551-
const struct i2c_device_id *id)
1550+
static int si5341_probe(struct i2c_client *client)
15521551
{
15531552
struct clk_si5341 *data;
15541553
struct clk_init_data init;
@@ -1837,7 +1836,7 @@ static struct i2c_driver si5341_driver = {
18371836
.name = "si5341",
18381837
.of_match_table = clk_si5341_of_match,
18391838
},
1840-
.probe = si5341_probe,
1839+
.probe_new = si5341_probe,
18411840
.remove = si5341_remove,
18421841
.id_table = si5341_id,
18431842
};

0 commit comments

Comments
 (0)