summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-03-26 22:09:58 +0100
committerCorey Minyard <cminyard@mvista.com>2020-05-14 15:37:31 -0500
commit653d374771601a345296dd2904a10e6e479ad866 (patch)
tree5d996a18ca03e89e133f4a836a03b1424dc69f53 /drivers/char
parentae83d0b416db002fe95601e7f97f64b59514d936 (diff)
downloadlwn-653d374771601a345296dd2904a10e6e479ad866.tar.gz
lwn-653d374771601a345296dd2904a10e6e479ad866.zip
char: ipmi: convert to use i2c_new_client_device()
Move away from the deprecated API. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Message-Id: <20200326210958.13051-2-wsa+renesas@sang-engineering.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ipmi/ipmi_ssif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
index b7145f370d3b..2704470e021d 100644
--- a/drivers/char/ipmi/ipmi_ssif.c
+++ b/drivers/char/ipmi/ipmi_ssif.c
@@ -1947,8 +1947,8 @@ static int ssif_adapter_handler(struct device *adev, void *opaque)
if (adev->type != &i2c_adapter_type)
return 0;
- addr_info->added_client = i2c_new_device(to_i2c_adapter(adev),
- &addr_info->binfo);
+ addr_info->added_client = i2c_new_client_device(to_i2c_adapter(adev),
+ &addr_info->binfo);
if (!addr_info->adapter_name)
return 1; /* Only try the first I2C adapter by default. */