Commit 653d3747 authored by Wolfram Sang's avatar Wolfram Sang Committed by Corey Minyard

char: ipmi: convert to use i2c_new_client_device()

Move away from the deprecated API.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Message-Id: <20200326210958.13051-2-wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent ae83d0b4
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment