aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 13:00:19 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 13:00:19 -0400
commit036a257b0d6809988f9d3fb01e01c358ca8c45de (patch)
treeed1be80467df76b8912764b9a050c666e18cd274
parent60f841ac36cc7eff80239bd219cda7cafac3ea2a (diff)
Staging: hv: remove Open from struct vmbus_channel_interface
No one calls it anymore, so remove it. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/channel_interface.c12
-rw-r--r--drivers/staging/hv/vmbus_api.h5
2 files changed, 0 insertions, 17 deletions
diff --git a/drivers/staging/hv/channel_interface.c b/drivers/staging/hv/channel_interface.c
index 49373dafa703..8f75963b49b4 100644
--- a/drivers/staging/hv/channel_interface.c
+++ b/drivers/staging/hv/channel_interface.c
@@ -25,18 +25,6 @@
25#include "osd.h" 25#include "osd.h"
26#include "vmbus_private.h" 26#include "vmbus_private.h"
27 27
28static int ivmbus_open(struct hv_device *device, u32 sendbuffer_size,
29 u32 recv_ringbuffer_size, void *userdata,
30 u32 userdatalen,
31 void (*channel_callback)(void *context),
32 void *context)
33{
34 return vmbus_open(device->channel, sendbuffer_size,
35 recv_ringbuffer_size, userdata, userdatalen,
36 channel_callback, context);
37}
38
39/* vmbus interface function pointer table */ 28/* vmbus interface function pointer table */
40const struct vmbus_channel_interface vmbus_ops = { 29const struct vmbus_channel_interface vmbus_ops = {
41 .Open = ivmbus_open,
42}; 30};
diff --git a/drivers/staging/hv/vmbus_api.h b/drivers/staging/hv/vmbus_api.h
index 42050a1e3f0e..79a906f3e48c 100644
--- a/drivers/staging/hv/vmbus_api.h
+++ b/drivers/staging/hv/vmbus_api.h
@@ -86,7 +86,6 @@ struct hv_device_info {
86 86
87/** 87/**
88 * struct vmbus_channel_interface - Contains member functions for vmbus channel 88 * struct vmbus_channel_interface - Contains member functions for vmbus channel
89 * @Open: Open the channel
90 * 89 *
91 * This structure contains function pointer to control vmbus channel 90 * This structure contains function pointer to control vmbus channel
92 * behavior. None of these functions is externally callable, but they 91 * behavior. None of these functions is externally callable, but they
@@ -94,10 +93,6 @@ struct hv_device_info {
94 * Only used by Hyper-V drivers. 93 * Only used by Hyper-V drivers.
95 */ 94 */
96struct vmbus_channel_interface { 95struct vmbus_channel_interface {
97 int (*Open)(struct hv_device *Device, u32 SendBufferSize,
98 u32 RecvRingBufferSize, void *UserData, u32 UserDataLen,
99 void (*ChannelCallback)(void *context),
100 void *Context);
101}; 96};
102 97
103extern const struct vmbus_channel_interface vmbus_ops; 98extern const struct vmbus_channel_interface vmbus_ops;