Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236316
b: refs/heads/master
c: c643269
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent c318c3d commit deb887a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 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: b9bd2f9b358613fb697c849a5300f890db54fbcf
refs/heads/master: c643269d67236661b44ff3605b77fb6e10925fdd
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int blkvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
drv_ctx->driver.shutdown = blkvsc_shutdown;

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

return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ static int __init mousevsc_init(void)
drv_ctx->driver.remove = mousevsc_remove;

/* The driver belongs to vmbus */
vmbus_child_driver_register(drv_ctx);
vmbus_child_driver_register(&drv_ctx->driver);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
drv_ctx->driver.remove = netvsc_remove;

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

return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
drv_ctx->driver.remove = storvsc_remove;

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

return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static inline struct driver_context *driver_to_driver_context(struct device_driv


/* Vmbus interface */
int vmbus_child_driver_register(struct driver_context *driver_ctx);
int vmbus_child_driver_register(struct device_driver *drv);
void vmbus_child_driver_unregister(struct driver_context *driver_ctx);

extern struct completion hv_channel_ready;
Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,27 +617,26 @@ static void vmbus_bus_exit(void)

/**
* vmbus_child_driver_register() - Register a vmbus's child driver
* @driver_ctx: Pointer to driver structure you want to register
* @drv: Pointer to driver structure you want to register
*
* @driver_ctx is of type &struct driver_context
*
* Registers the given driver with Linux through the 'driver_register()' call
* And sets up the hyper-v vmbus handling for this driver.
* It will return the state of the 'driver_register()' call.
*
* Mainly used by Hyper-V drivers.
*/
int vmbus_child_driver_register(struct driver_context *driver_ctx)
int vmbus_child_driver_register(struct device_driver *drv)
{
int ret;

DPRINT_INFO(VMBUS_DRV, "child driver (%p) registering - name %s",
driver_ctx, driver_ctx->driver.name);
drv, drv->name);

/* The child driver on this vmbus */
driver_ctx->driver.bus = &vmbus_drv.bus;
drv->bus = &vmbus_drv.bus;

ret = driver_register(&driver_ctx->driver);
ret = driver_register(drv);

vmbus_request_offers();

Expand Down

0 comments on commit deb887a

Please sign in to comment.