Commit b8fadb39 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Corey Minyard

ipmi: ssif_bmc: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Message-Id: <20221118224540.619276-606-uwe@kleine-koenig.org>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent a92ce570
......@@ -797,7 +797,7 @@ static int ssif_bmc_cb(struct i2c_client *client, enum i2c_slave_event event, u8
return ret;
}
static int ssif_bmc_probe(struct i2c_client *client, const struct i2c_device_id *id)
static int ssif_bmc_probe(struct i2c_client *client)
{
struct ssif_bmc_ctx *ssif_bmc;
int ret;
......@@ -860,7 +860,7 @@ static struct i2c_driver ssif_bmc_driver = {
.name = DEVICE_NAME,
.of_match_table = ssif_bmc_match,
},
.probe = ssif_bmc_probe,
.probe_new = ssif_bmc_probe,
.remove = ssif_bmc_remove,
.id_table = ssif_bmc_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