Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249673
b: refs/heads/master
c: 2bda87c
h: refs/heads/master
i:
  249671: b25b3f1
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 466cdc0 commit 34c643d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 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: 8553d753a494dfd952d7e44ab6f1171839b6185d
refs/heads/master: 2bda87cb6c765bf2178d3da90367bf53dbcc14d6
30 changes: 1 addition & 29 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,37 +792,9 @@ static int storvsc_drv_init(void)
return ret;
}

static int storvsc_drv_exit_cb(struct device *dev, void *data)
{
struct device **curr = (struct device **)data;
*curr = dev;
return 1; /* stop iterating */
}

static void storvsc_drv_exit(void)
{
struct hv_driver *drv = &storvsc_drv;
struct device *current_dev = NULL;
int ret;

while (1) {
current_dev = NULL;

/* Get the device */
ret = driver_for_each_device(&drv->driver, NULL,
(void *) &current_dev,
storvsc_drv_exit_cb);


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(&storvsc_drv.driver);
}

static int __init storvsc_init(void)
Expand Down

0 comments on commit 34c643d

Please sign in to comment.