diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2010-09-08 16:29:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-14 19:27:12 -0400 |
commit | 9e795a5232e1888d46e22e05677d280a1056ceea (patch) | |
tree | 72ef59bde440e15a514158513f35fdbdc389bfab /drivers/staging/hv/vmbus.c | |
parent | 5fee254098c11a52ce04e1efdc8c090caf592bfd (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.c | 9 |
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 | */ | ||
66 | static 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 | */ |
74 | static void VmbusGetChannelInfo(struct hv_device *DeviceObject, | 66 | static 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 */ |