Skip to content

Commit

Permalink
Staging: hv: remove VmbusGetChannelInfo
Browse files Browse the repository at this point in the history
It's not needed, make the function pointer point to get_channel_info()
instead.

Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 20, 2010
1 parent 50fe56d commit ee00966
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions drivers/staging/hv/vmbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ static void VmbusGetChannelOffers(void)
vmbus_request_offers();
}

/*
* VmbusGetChannelInfo - Get the device info for the specified device object
*/
static void VmbusGetChannelInfo(struct hv_device *DeviceObject,
struct hv_device_info *DeviceInfo)
{
get_channel_info(DeviceObject, DeviceInfo);
}

/*
* VmbusCreateChildDevice - Creates the child device on the bus that represents the channel offer
*/
Expand Down Expand Up @@ -271,7 +262,7 @@ int VmbusInitialize(struct hv_driver *drv)
driver->OnMsgDpc = VmbusOnMsgDPC;
driver->OnEventDpc = VmbusOnEventDPC;
driver->GetChannelOffers = VmbusGetChannelOffers;
driver->GetChannelInfo = VmbusGetChannelInfo;
driver->GetChannelInfo = get_channel_info;

/* Hypervisor initialization...setup hypercall page..etc */
ret = HvInit();
Expand Down

0 comments on commit ee00966

Please sign in to comment.