aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kitt <[email protected]>2022-04-07 17:18:26 +0200
committerStephen Boyd <[email protected]>2022-04-22 19:28:08 -0700
commitd8703ce85e7c7afbb9df736e75138a32e1cba164 (patch)
tree4f81da9a8b7489441fc4f7df274b414efe3e996b
parent55349aedb5daa5ca8f14e485d069b0bb6ea483d5 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Wolfram Sang <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r--drivers/clk/clk-si514.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clk/clk-si514.c b/drivers/clk/clk-si514.c
index 364b62b9928d..4481c4303534 100644
--- a/drivers/clk/clk-si514.c
+++ b/drivers/clk/clk-si514.c
@@ -327,8 +327,7 @@ static const struct regmap_config si514_regmap_config = {
.volatile_reg = si514_regmap_is_volatile,
};
-static int si514_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int si514_probe(struct i2c_client *client)
{
struct clk_si514 *data;
struct clk_init_data init;
@@ -394,7 +393,7 @@ static struct i2c_driver si514_driver = {
.name = "si514",
.of_match_table = clk_si514_of_match,
},
- .probe = si514_probe,
+ .probe_new = si514_probe,
.remove = si514_remove,
.id_table = si514_id,
};