clk: cs2000-cp: 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-4-steve@sk2.org Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
df22168207
commit
eb5f909ac9
@ -570,8 +570,7 @@ static int cs2000_remove(struct i2c_client *client)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cs2000_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int cs2000_probe(struct i2c_client *client)
|
||||
{
|
||||
struct cs2000_priv *priv;
|
||||
struct device *dev = &client->dev;
|
||||
@ -625,7 +624,7 @@ static struct i2c_driver cs2000_driver = {
|
||||
.pm = &cs2000_pm_ops,
|
||||
.of_match_table = cs2000_of_match,
|
||||
},
|
||||
.probe = cs2000_probe,
|
||||
.probe_new = cs2000_probe,
|
||||
.remove = cs2000_remove,
|
||||
.id_table = cs2000_id,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user