aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/vmbus.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2010-09-08 16:29:45 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-14 19:27:12 -0400
commit9e795a5232e1888d46e22e05677d280a1056ceea (patch)
tree72ef59bde440e15a514158513f35fdbdc389bfab /drivers/staging/hv/vmbus.c
parent5fee254098c11a52ce04e1efdc8c090caf592bfd (diff)
staging: hv: Convert vmbus driver interface function pointer table to constant
Convert vmbus driver interface function pointer table to constant The vmbus interface functions are assigned to a constant - vmbus_ops. Because the vmbus interface function pointer table is converted to a constant variable -- vmbus_ops, the function GetChannelInterface(), VmbusGetChannelInterface() and pointer GetChannelInterface are no longer in use. The deprecated function's work is done by the initialization of the newly added constant variable vmbus_ops. I created the new constant variable vmbus_ops and removed the deprecated function pointer GetChannelInterface in one patch. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/vmbus.c')
-rw-r--r--drivers/staging/hv/vmbus.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/hv/vmbus.c b/drivers/staging/hv/vmbus.c
index ca1e18a6200..db2afa33eac 100644
--- a/drivers/staging/hv/vmbus.c
+++ b/drivers/staging/hv/vmbus.c
@@ -61,14 +61,6 @@ static void VmbusGetChannelOffers(void)
61} 61}
62 62
63/* 63/*
64 * VmbusGetChannelInterface - Get the channel interface
65 */
66static void VmbusGetChannelInterface(struct vmbus_channel_interface *Interface)
67{
68 GetChannelInterface(Interface);
69}
70
71/*
72 * VmbusGetChannelInfo - Get the device info for the specified device object 64 * VmbusGetChannelInfo - Get the device info for the specified device object
73 */ 65 */
74static void VmbusGetChannelInfo(struct hv_device *DeviceObject, 66static void VmbusGetChannelInfo(struct hv_device *DeviceObject,
@@ -279,7 +271,6 @@ int VmbusInitialize(struct hv_driver *drv)
279 driver->OnMsgDpc = VmbusOnMsgDPC; 271 driver->OnMsgDpc = VmbusOnMsgDPC;
280 driver->OnEventDpc = VmbusOnEventDPC; 272 driver->OnEventDpc = VmbusOnEventDPC;
281 driver->GetChannelOffers = VmbusGetChannelOffers; 273 driver->GetChannelOffers = VmbusGetChannelOffers;
282 driver->GetChannelInterface = VmbusGetChannelInterface;
283 driver->GetChannelInfo = VmbusGetChannelInfo; 274 driver->GetChannelInfo = VmbusGetChannelInfo;
284 275
285 /* Hypervisor initialization...setup hypercall page..etc */ 276 /* Hypervisor initialization...setup hypercall page..etc */