Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249674
b: refs/heads/master
c: 96053ef
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 34c643d commit dc1b203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 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: 2bda87cb6c765bf2178d3da90367bf53dbcc14d6
refs/heads/master: 96053efd3c8e13f85abe9783be0e70cb97e82f2b
33 changes: 1 addition & 32 deletions trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,13 +915,6 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len)
kfree(hid_dev);
}

static int mousevsc_drv_exit_cb(struct device *dev, void *data)
{
struct device **curr = (struct device **)data;
*curr = dev;

return 1;
}

static struct hv_driver mousevsc_drv = {
.probe = mousevsc_probe,
Expand All @@ -930,31 +923,7 @@ static struct hv_driver mousevsc_drv = {

static void mousevsc_drv_exit(void)
{
struct hv_driver *drv = &mousevsc_drv;
int ret;

struct device *current_dev = NULL;

while (1) {
current_dev = NULL;

/* Get the device */
ret = driver_for_each_device(&drv->driver, NULL,
(void *)&current_dev,
mousevsc_drv_exit_cb);
if (ret)
printk(KERN_ERR "Can't find mouse device!\n");

if (current_dev == NULL)
break;

/* Initiate removal from the top-down */
device_unregister(current_dev);
}

vmbus_child_driver_unregister(&drv->driver);

return;
vmbus_child_driver_unregister(&mousevsc_drv.driver);
}

static int __init mousevsc_init(void)
Expand Down

0 comments on commit dc1b203

Please sign in to comment.