Commit be8647d2 authored by Corey Minyard's avatar Corey Minyard

ipmi:ssif: Use i2c_adapter_id instead of adapter->nr

Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 1adc9105
...@@ -1096,7 +1096,7 @@ static int inc_usecount(void *send_info) ...@@ -1096,7 +1096,7 @@ static int inc_usecount(void *send_info)
{ {
struct ssif_info *ssif_info = send_info; struct ssif_info *ssif_info = send_info;
if (!i2c_get_adapter(ssif_info->client->adapter->nr)) if (!i2c_get_adapter(i2c_adapter_id(ssif_info->client->adapter)))
return -ENODEV; return -ENODEV;
i2c_use_client(ssif_info->client); i2c_use_client(ssif_info->client);
...@@ -1665,7 +1665,8 @@ static int ssif_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -1665,7 +1665,8 @@ static int ssif_probe(struct i2c_client *client, const struct i2c_device_id *id)
{ {
unsigned int thread_num; unsigned int thread_num;
thread_num = ((ssif_info->client->adapter->nr << 8) | thread_num = ((i2c_adapter_id(ssif_info->client->adapter)
<< 8) |
ssif_info->client->addr); ssif_info->client->addr);
init_completion(&ssif_info->wake_thread); init_completion(&ssif_info->wake_thread);
ssif_info->thread = kthread_run(ipmi_ssif_thread, ssif_info, ssif_info->thread = kthread_run(ipmi_ssif_thread, ssif_info,
......
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