summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-11-06 10:50:20 +0100
committerWolfram Sang <wsa@the-dreams.de>2019-11-28 17:15:48 +0100
commitce668524bf79e7739fdceb406b4f9d6cd6ba6cc0 (patch)
tree64b92ab8c0c7c7e9b04e832f818ae90a8d21d4e5 /drivers/i2c
parenti2c: replace i2c_new_probed_device with an ERR_PTR variant (diff)
downloadlinux-ce668524bf79e7739fdceb406b4f9d6cd6ba6cc0.tar.xz
linux-ce668524bf79e7739fdceb406b4f9d6cd6ba6cc0.zip
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-icy.c8
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,
- &ltc2990_info,
- icy_ltc2990_addresses,
- NULL);
+ i2c_new_scanned_device(&i2c->adapter,
+ &ltc2990_info,
+ icy_ltc2990_addresses,
+ NULL);
}
return 0;