Skip to content

Commit 653d374

Browse files
Wolfram Sangcminyard
authored andcommitted
char: ipmi: convert to use i2c_new_client_device()
Move away from the deprecated API. Signed-off-by: Wolfram Sang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent ae83d0b commit 653d374

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/ipmi/ipmi_ssif.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,8 @@ static int ssif_adapter_handler(struct device *adev, void *opaque)
19471947
if (adev->type != &i2c_adapter_type)
19481948
return 0;
19491949

1950-
addr_info->added_client = i2c_new_device(to_i2c_adapter(adev),
1951-
&addr_info->binfo);
1950+
addr_info->added_client = i2c_new_client_device(to_i2c_adapter(adev),
1951+
&addr_info->binfo);
19521952

19531953
if (!addr_info->adapter_name)
19541954
return 1; /* Only try the first I2C adapter by default. */

0 commit comments

Comments
 (0)