Skip to content

Commit 0b79d5d

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
mtd: maps: pismo: 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. Acked-by: Richard Weinberger <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 55e7ddd commit 0b79d5d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/mtd/maps/pismo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ static void pismo_remove(struct i2c_client *client)
206206
kfree(pismo);
207207
}
208208

209-
static int pismo_probe(struct i2c_client *client,
210-
const struct i2c_device_id *id)
209+
static int pismo_probe(struct i2c_client *client)
211210
{
212211
struct pismo_pdata *pdata = client->dev.platform_data;
213212
struct pismo_eeprom eeprom;
@@ -260,7 +259,7 @@ static struct i2c_driver pismo_driver = {
260259
.driver = {
261260
.name = "pismo",
262261
},
263-
.probe = pismo_probe,
262+
.probe_new = pismo_probe,
264263
.remove = pismo_remove,
265264
.id_table = pismo_id,
266265
};

0 commit comments

Comments
 (0)