From: Heiner Kallweit Date: Mon, 24 May 2021 20:13:52 +0000 (+0200) Subject: eeprom: ee1004: Switch to i2c probe_new callback X-Git-Tag: accepted/tizen/unified/20230118.172025~6891^2~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ac99039c568467ea2e593221aa2a741fa63f0b1;p=platform%2Fkernel%2Flinux-rpi.git eeprom: ee1004: Switch to i2c probe_new callback Switch to the new i2c_driver probe callback version. Signed-off-by: Heiner Kallweit Link: https://lore.kernel.org/r/eb5be659-7427-46c5-66c2-b39650e08ea3@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/eeprom/ee1004.c b/drivers/misc/eeprom/ee1004.c index 4b2c60a..460cc22 100644 --- a/drivers/misc/eeprom/ee1004.c +++ b/drivers/misc/eeprom/ee1004.c @@ -163,8 +163,7 @@ static struct bin_attribute *ee1004_attrs[] = { BIN_ATTRIBUTE_GROUPS(ee1004); -static int ee1004_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ee1004_probe(struct i2c_client *client) { int err, cnr = 0; @@ -246,7 +245,7 @@ static struct i2c_driver ee1004_driver = { .name = "ee1004", .dev_groups = ee1004_groups, }, - .probe = ee1004_probe, + .probe_new = ee1004_probe, .remove = ee1004_remove, .id_table = ee1004_ids, };