Commit ce668524 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarMax Staudt <max@enpas.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c1d08475
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ static int icy_probe(struct zorro_dev *z,
		ltc2990_info.fwnode = new_fwnode;

		i2c->ltc2990_client =
			i2c_new_probed_device(&i2c->adapter,
			i2c_new_scanned_device(&i2c->adapter,
					       &ltc2990_info,
					       icy_ltc2990_addresses,
					       NULL);