Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268669
b: refs/heads/master
c: 8ec31f9
h: refs/heads/master
i:
  268667: b8b7086
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent ed8d2d4 commit 20fbaf6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8660e38fab8b8a39ac828fb8a8579a9ad1b5d59d
refs/heads/master: 8ec31f9385fdcd7c71fa0078deb0e84840f3cb49
47 changes: 17 additions & 30 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,33 +660,6 @@ static int mousevsc_on_device_add(struct hv_device *device,
return ret;
}

static int mousevsc_on_device_remove(struct hv_device *device)
{
struct mousevsc_dev *input_dev;
int ret = 0;


input_dev = release_input_device(device);


/*
* At this point, all outbound traffic should be disable. We only
* allow inbound traffic (responses) to proceed
*
* so that outstanding requests can be completed.
*/

input_dev = final_release_input_device(device);

/* Close the channel */
vmbus_close(device->channel);

free_input_device(input_dev);

return ret;
}


static int mousevsc_probe(struct hv_device *dev,
const struct hv_vmbus_device_id *dev_id)
{
Expand All @@ -706,11 +679,25 @@ static int mousevsc_remove(struct hv_device *dev)
hid_destroy_device(input_dev->hid_device);
}


release_input_device(dev);


/*
* Call to the vsc driver to let it know that the device
* is being removed
* At this point, all outbound traffic should be disable. We only
* allow inbound traffic (responses) to proceed
*
* so that outstanding requests can be completed.
*/
return mousevsc_on_device_remove(dev);

input_dev = final_release_input_device(dev);

/* Close the channel */
vmbus_close(dev->channel);

free_input_device(input_dev);

return 0;
}

static const struct hv_vmbus_device_id id_table[] = {
Expand Down

0 comments on commit 20fbaf6

Please sign in to comment.