aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 2cc1ebb131ba..251aafff5492 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -227,7 +227,7 @@ static int mei_release(struct inode *inode, struct file *file)
227 clear_bit(cl->host_client_id, dev->host_clients_map); 227 clear_bit(cl->host_client_id, dev->host_clients_map);
228 dev->open_handle_count--; 228 dev->open_handle_count--;
229 } 229 }
230 mei_remove_client_from_file_list(dev, cl->host_client_id); 230 mei_me_cl_unlink(dev, cl);
231 231
232 /* free read cb */ 232 /* free read cb */
233 cb = NULL; 233 cb = NULL;
@@ -913,8 +913,8 @@ static void __devexit mei_remove(struct pci_dev *pdev)
913 913
914 /* remove entry if already in list */ 914 /* remove entry if already in list */
915 dev_dbg(&pdev->dev, "list del iamthif and wd file list.\n"); 915 dev_dbg(&pdev->dev, "list del iamthif and wd file list.\n");
916 mei_remove_client_from_file_list(dev, dev->wd_cl.host_client_id); 916 mei_me_cl_unlink(dev, &dev->wd_cl);
917 mei_remove_client_from_file_list(dev, dev->iamthif_cl.host_client_id); 917 mei_me_cl_unlink(dev, &dev->iamthif_cl);
918 918
919 dev->iamthif_current_cb = NULL; 919 dev->iamthif_current_cb = NULL;
920 dev->me_clients_num = 0; 920 dev->me_clients_num = 0;