diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-04-05 22:09:36 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-04-18 10:23:02 -0500 |
commit | f0258c95304e7712143bddd3a2af53bc9e549a7b (patch) | |
tree | 99e1aff318fe4ecd5dc66f74441b052d5bfffa8d | |
parent | 8d17929ad50f2c9d4cf55e8f3eb249a60f429a0d (diff) | |
download | linux-f0258c95304e7712143bddd3a2af53bc9e549a7b.tar.bz2 |
ipmi_ssif: Remove usecount handling
Now that we can handle hot remove there is no need for usecounts
for interfaces.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 0f3dd94519d9..8c72f271d4b4 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -1094,25 +1094,6 @@ static void request_events(void *send_info) } } -static int inc_usecount(void *send_info) -{ - struct ssif_info *ssif_info = send_info; - - if (!i2c_get_adapter(i2c_adapter_id(ssif_info->client->adapter))) - return -ENODEV; - - i2c_use_client(ssif_info->client); - return 0; -} - -static void dec_usecount(void *send_info) -{ - struct ssif_info *ssif_info = send_info; - - i2c_release_client(ssif_info->client); - i2c_put_adapter(ssif_info->client->adapter); -} - static int ssif_start_processing(void *send_info, struct ipmi_smi *intf) { @@ -1707,8 +1688,6 @@ static int ssif_probe(struct i2c_client *client, const struct i2c_device_id *id) ssif_info->handlers.get_smi_info = get_smi_info; ssif_info->handlers.sender = sender; ssif_info->handlers.request_events = request_events; - ssif_info->handlers.inc_usecount = inc_usecount; - ssif_info->handlers.dec_usecount = dec_usecount; { unsigned int thread_num; |