From: Wolfram Sang Date: Wed, 6 Nov 2019 09:50:20 +0000 (+0100) Subject: i2c: icy: convert to i2c_new_scanned_device X-Git-Tag: v5.15~5007^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce668524bf79e7739fdceb406b4f9d6cd6ba6cc0;p=platform%2Fkernel%2Flinux-starfive.git i2c: icy: convert to i2c_new_scanned_device Move from the deprecated i2c_new_probed_device() to the new i2c_new_scanned_device(). Make use of the new ERRPTR if suitable. Signed-off-by: Wolfram Sang Reviewed-by: Max Staudt Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-icy.c b/drivers/i2c/busses/i2c-icy.c index 9d9fd78..271470f 100644 --- a/drivers/i2c/busses/i2c-icy.c +++ b/drivers/i2c/busses/i2c-icy.c @@ -187,10 +187,10 @@ static int icy_probe(struct zorro_dev *z, ltc2990_info.fwnode = new_fwnode; i2c->ltc2990_client = - i2c_new_probed_device(&i2c->adapter, - <c2990_info, - icy_ltc2990_addresses, - NULL); + i2c_new_scanned_device(&i2c->adapter, + <c2990_info, + icy_ltc2990_addresses, + NULL); } return 0;