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>
This commit is contained in:
parent
ae83d0b416
commit
653d374771
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue