diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-11-06 10:50:20 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-11-28 17:15:48 +0100 |
commit | ce668524bf79e7739fdceb406b4f9d6cd6ba6cc0 (patch) | |
tree | 64b92ab8c0c7c7e9b04e832f818ae90a8d21d4e5 | |
parent | c1d084759c95ecd0ef08274654a1f6c4f343cdcd (diff) | |
download | linux-ce668524bf79e7739fdceb406b4f9d6cd6ba6cc0.tar.bz2 |
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>
-rw-r--r-- | drivers/i2c/busses/i2c-icy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-icy.c b/drivers/i2c/busses/i2c-icy.c index 9d9fd78e0eed..271470f4d8a9 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; |