Commit 8ffb7733 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Alexandre Belloni

rtc: rx8025: Convert to .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in .probe().
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20221021130706.178687-10-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 84c2fb38
...@@ -519,9 +519,9 @@ static const struct attribute_group rx8025_attr_group = { ...@@ -519,9 +519,9 @@ static const struct attribute_group rx8025_attr_group = {
.attrs = rx8025_attrs, .attrs = rx8025_attrs,
}; };
static int rx8025_probe(struct i2c_client *client, static int rx8025_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
const struct i2c_device_id *id = i2c_match_id(rx8025_id, client);
struct i2c_adapter *adapter = client->adapter; struct i2c_adapter *adapter = client->adapter;
struct rx8025_data *rx8025; struct rx8025_data *rx8025;
int err = 0; int err = 0;
...@@ -580,7 +580,7 @@ static struct i2c_driver rx8025_driver = { ...@@ -580,7 +580,7 @@ static struct i2c_driver rx8025_driver = {
.driver = { .driver = {
.name = "rtc-rx8025", .name = "rtc-rx8025",
}, },
.probe = rx8025_probe, .probe_new = rx8025_probe,
.id_table = rx8025_id, .id_table = rx8025_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