mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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 <wsa+renesas@sang-engineering.com> Reviewed-by: Max Staudt <max@enpas.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
c1d084759c
commit
ce668524bf
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue