aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/clk-max9485.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2022-04-07 17:18:25 +0200
committerStephen Boyd <sboyd@kernel.org>2022-04-22 19:28:08 -0700
commit55349aedb5daa5ca8f14e485d069b0bb6ea483d5 (patch)
treee6b589f8ae082925d277710343a17fef55cde888 /drivers/clk/clk-max9485.c
parentclk: cs2000-cp: use simple i2c probe function (diff)
downloadwireguard-linux-55349aedb5daa5ca8f14e485d069b0bb6ea483d5.tar.xz
wireguard-linux-55349aedb5daa5ca8f14e485d069b0bb6ea483d5.zip
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>
Diffstat (limited to 'drivers/clk/clk-max9485.c')
-rw-r--r--drivers/clk/clk-max9485.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clk/clk-max9485.c b/drivers/clk/clk-max9485.c
index 5e80f3d090f3..5f85b0a32872 100644
--- a/drivers/clk/clk-max9485.c
+++ b/drivers/clk/clk-max9485.c
@@ -254,8 +254,7 @@ max9485_of_clk_get(struct of_phandle_args *clkspec, void *data)
return &drvdata->hw[idx].hw;
}
-static int max9485_i2c_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int max9485_i2c_probe(struct i2c_client *client)
{
struct max9485_driver_data *drvdata;
struct device *dev = &client->dev;
@@ -377,7 +376,7 @@ static struct i2c_driver max9485_driver = {
.pm = &max9485_pm_ops,
.of_match_table = max9485_dt_ids,
},
- .probe = max9485_i2c_probe,
+ .probe_new = max9485_i2c_probe,
.id_table = max9485_i2c_ids,
};
module_i2c_driver(max9485_driver);