Commit d8703ce8 authored by Stephen Kitt's avatar Stephen Kitt Committed by Stephen Boyd

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: default avatarStephen Kitt <steve@sk2.org>
Link: https://lore.kernel.org/r/20220407151831.2371706-6-steve@sk2.orgReviewed-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 55349aed
...@@ -327,8 +327,7 @@ static const struct regmap_config si514_regmap_config = { ...@@ -327,8 +327,7 @@ static const struct regmap_config si514_regmap_config = {
.volatile_reg = si514_regmap_is_volatile, .volatile_reg = si514_regmap_is_volatile,
}; };
static int si514_probe(struct i2c_client *client, static int si514_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct clk_si514 *data; struct clk_si514 *data;
struct clk_init_data init; struct clk_init_data init;
...@@ -394,7 +393,7 @@ static struct i2c_driver si514_driver = { ...@@ -394,7 +393,7 @@ static struct i2c_driver si514_driver = {
.name = "si514", .name = "si514",
.of_match_table = clk_si514_of_match, .of_match_table = clk_si514_of_match,
}, },
.probe = si514_probe, .probe_new = si514_probe,
.remove = si514_remove, .remove = si514_remove,
.id_table = si514_id, .id_table = si514_id,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment