Skip to content

Commit 8feea62

Browse files
committed
Merge tag 'for-linus-5.7-2' of git://github.com/cminyard/linux-ipmi
Pull IPMI update from Corey Minyard: "Convert i2c_new_device() to i2c_new_client_device() Wolfram Sang has asked to have this included in 5.7 so the deprecated API can be removed next release. There should be no functional difference. I think that entire this section of code can be removed; it is leftover from other things that have since changed, but this is the safer thing to do for now. The full removal can happen next release" * tag 'for-linus-5.7-2' of git://github.com/cminyard/linux-ipmi: char: ipmi: convert to use i2c_new_client_device()
2 parents 9b1f2cb + 653d374 commit 8feea62

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)