]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: si5341: use simple i2c probe function
authorStephen Kitt <steve@sk2.org>
Thu, 7 Apr 2022 15:18:27 +0000 (17:18 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 23 Apr 2022 02:28:08 +0000 (19:28 -0700)
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>
drivers/clk/clk-si5341.c

index 41851f41b68211a6dab2b076403ad3b4965f42a1..4bca73212662876224c6d57932e8558a431279ae 100644 (file)
@@ -1547,8 +1547,7 @@ static const struct attribute *si5341_attributes[] = {
        NULL
 };
 
-static int si5341_probe(struct i2c_client *client,
-               const struct i2c_device_id *id)
+static int si5341_probe(struct i2c_client *client)
 {
        struct clk_si5341 *data;
        struct clk_init_data init;
@@ -1837,7 +1836,7 @@ static struct i2c_driver si5341_driver = {
                .name = "si5341",
                .of_match_table = clk_si5341_of_match,
        },
-       .probe          = si5341_probe,
+       .probe_new      = si5341_probe,
        .remove         = si5341_remove,
        .id_table       = si5341_id,
 };