Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249696
b: refs/heads/master
c: fde0ef9
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent a86eb8c commit e653f94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 4e3cba6b4c34dd23a2e2487a26ffcecdf6bd3498
refs/heads/master: fde0ef9b235d8cb141e3aa35fdc7e9889e3a4cb3
15 changes: 7 additions & 8 deletions trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,26 +428,25 @@ static int netvsc_remove(struct hv_device *dev)
}

/* The one and only one */
static struct netvsc_driver netvsc_drv = {
.base.probe = netvsc_probe,
.base.remove = netvsc_remove,
static struct hv_driver netvsc_drv = {
.probe = netvsc_probe,
.remove = netvsc_remove,
};

static void netvsc_drv_exit(void)
{
vmbus_child_driver_unregister(&netvsc_drv.base.driver);
vmbus_child_driver_unregister(&netvsc_drv.driver);
}

static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
{
struct netvsc_driver *net_drv_obj = &netvsc_drv;
struct hv_driver *drv = &netvsc_drv.base;
struct hv_driver *drv = &netvsc_drv;
int ret;

/* Callback to client driver to complete the initialization */
drv_init(&net_drv_obj->base);
drv_init(drv);

drv->driver.name = net_drv_obj->base.name;
drv->driver.name = drv->name;

/* The driver belongs to vmbus */
ret = vmbus_child_driver_register(&drv->driver);
Expand Down

0 comments on commit e653f94

Please sign in to comment.