diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-18 23:45:39 +0100 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-11-21 06:59:41 -0600 |
commit | b8fadb396414972c7e526f3f94c0b4d114d2b2a1 (patch) | |
tree | 9d7e3450d04116ac0540248fb27c7794b124dd60 /drivers | |
parent | a92ce570c81dc0feaeb12a429b4bc65686d17967 (diff) | |
download | linux-stable-b8fadb396414972c7e526f3f94c0b4d114d2b2a1.tar.gz linux-stable-b8fadb396414972c7e526f3f94c0b4d114d2b2a1.tar.bz2 linux-stable-b8fadb396414972c7e526f3f94c0b4d114d2b2a1.zip |
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Message-Id: <20221118224540.619276-606-uwe@kleine-koenig.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/ipmi/ssif_bmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ssif_bmc.c b/drivers/char/ipmi/ssif_bmc.c index 2d8069386398..caee848261e9 100644 --- a/drivers/char/ipmi/ssif_bmc.c +++ b/drivers/char/ipmi/ssif_bmc.c @@ -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, }; |