Skip to content

Commit

Permalink
rtc: rx8010: switch to using the preferred i2c API
Browse files Browse the repository at this point in the history
We should generally use probe_new instead of probe when registering i2c
drivers. Convert rx8010 to using it.

Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
brgl authored and alexandrebelloni committed Sep 15, 2020
1 parent 0ce6277 commit cee015d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/rtc/rtc-rx8010.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ static const struct rtc_class_ops rx8010_rtc_ops_alarm = {
.alarm_irq_enable = rx8010_alarm_irq_enable,
};

static int rx8010_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int rx8010_probe(struct i2c_client *client)
{
struct i2c_adapter *adapter = client->adapter;
struct device *dev = &client->dev;
Expand Down Expand Up @@ -469,7 +468,7 @@ static struct i2c_driver rx8010_driver = {
.name = "rtc-rx8010",
.of_match_table = of_match_ptr(rx8010_of_match),
},
.probe = rx8010_probe,
.probe_new = rx8010_probe,
.id_table = rx8010_id,
};

Expand Down

0 comments on commit cee015d

Please sign in to comment.