aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-20 15:55:36 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-20 15:55:36 -0700
commitee00966818584e8dbf7a5c7118c3b3cfebd6be14 (patch)
tree2af0243464b830ace7608dba625f6fb650958842 /drivers/staging/hv
parentStaging: hv: make alloc_channel static (diff)
downloadlinux-dev-ee00966818584e8dbf7a5c7118c3b3cfebd6be14.tar.xz
linux-dev-ee00966818584e8dbf7a5c7118c3b3cfebd6be14.zip
Staging: hv: remove VmbusGetChannelInfo
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>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/vmbus.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/staging/hv/vmbus.c b/drivers/staging/hv/vmbus.c
index b385e6f6346b..6e13c1c976f1 100644
--- a/drivers/staging/hv/vmbus.c
+++ b/drivers/staging/hv/vmbus.c
@@ -61,15 +61,6 @@ static void VmbusGetChannelOffers(void)
}
/*
- * 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
*/
struct hv_device *VmbusChildDeviceCreate(struct hv_guid *DeviceType,
@@ -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();