Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228256
b: refs/heads/master
c: 2d6e882
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Dec 2, 2010
1 parent df1db47 commit 3add25a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 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: c722bd3e2cb92be7afec346894faa29605436c1a
refs/heads/master: 2d6e882bada0ca7828347647c5b1091bf5f18fee
9 changes: 0 additions & 9 deletions trunk/drivers/staging/hv/vmbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ static const struct hv_guid gVmbusDeviceId = {
static struct hv_driver *gDriver; /* vmbus driver object */
static struct hv_device *gDevice; /* vmbus root device */

/*
* VmbusGetChannelOffers - Retrieve the channel offers from the parent partition
*/
static void VmbusGetChannelOffers(void)
{
vmbus_request_offers();
}

/*
* VmbusChildDeviceAdd - Registers the child device with the vmbus
*/
Expand Down Expand Up @@ -235,7 +227,6 @@ int VmbusInitialize(struct hv_driver *drv)
driver->Base.OnDeviceAdd = VmbusOnDeviceAdd;
driver->Base.OnDeviceRemove = VmbusOnDeviceRemove;
driver->Base.OnCleanup = VmbusOnCleanup;
driver->GetChannelOffers = VmbusGetChannelOffers;

/* Hypervisor initialization...setup hypercall page..etc */
ret = hv_init();
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ struct vmbus_driver {
/* Set by the caller */
int (*OnChildDeviceAdd)(struct hv_device *RootDevice,
struct hv_device *ChildDevice);

/* Set by the callee */
void (*GetChannelOffers)(void);
};

int VmbusInitialize(struct hv_driver *drv);
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,7 @@ static int vmbus_bus_init(int (*drv_init)(struct hv_driver *drv))
goto cleanup;
}


vmbus_drv_obj->GetChannelOffers();

vmbus_request_offers();
wait_for_completion(&hv_channel_ready);

cleanup:
Expand Down Expand Up @@ -441,7 +439,6 @@ static void vmbus_bus_exit(void)
*/
int vmbus_child_driver_register(struct driver_context *driver_ctx)
{
struct vmbus_driver *vmbus_drv_obj = &g_vmbus_drv.drv_obj;
int ret;

DPRINT_INFO(VMBUS_DRV, "child driver (%p) registering - name %s",
Expand All @@ -452,7 +449,7 @@ int vmbus_child_driver_register(struct driver_context *driver_ctx)

ret = driver_register(&driver_ctx->driver);

vmbus_drv_obj->GetChannelOffers();
vmbus_request_offers();

return ret;
}
Expand Down

0 comments on commit 3add25a

Please sign in to comment.