]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: hv: remove Open from struct vmbus_channel_interface
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 17:00:19 +0000 (10:00 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 17:00:19 +0000 (10:00 -0700)
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>
drivers/staging/hv/channel_interface.c
drivers/staging/hv/vmbus_api.h

index 49373dafa7038ecefeb9ef92482b91d18b3b3b04..8f75963b49b4f25e01120a768277788f7b150342 100644 (file)
 #include "osd.h"
 #include "vmbus_private.h"
 
-static int ivmbus_open(struct hv_device *device, u32 sendbuffer_size,
-                            u32 recv_ringbuffer_size, void *userdata,
-                            u32 userdatalen,
-                            void (*channel_callback)(void *context),
-                            void *context)
-{
-       return vmbus_open(device->channel, sendbuffer_size,
-                               recv_ringbuffer_size, userdata, userdatalen,
-                               channel_callback, context);
-}
-
 /* vmbus interface function pointer table */
 const struct vmbus_channel_interface vmbus_ops = {
-       .Open = ivmbus_open,
 };
index 42050a1e3f0e3accbf5badb37185de75345bcca3..79a906f3e48c093483617c4cacb720ce4b53a8db 100644 (file)
@@ -86,7 +86,6 @@ struct hv_device_info {
 
 /**
  * struct vmbus_channel_interface - Contains member functions for vmbus channel
- * @Open:      Open the channel
  *
  * This structure contains function pointer to control vmbus channel
  * behavior. None of these functions is externally callable, but they
@@ -94,10 +93,6 @@ struct hv_device_info {
  * Only used by Hyper-V drivers.
  */
 struct vmbus_channel_interface {
-       int (*Open)(struct hv_device *Device, u32 SendBufferSize,
-                   u32 RecvRingBufferSize, void *UserData, u32 UserDataLen,
-                   void (*ChannelCallback)(void *context),
-                   void *Context);
 };
 
 extern const struct vmbus_channel_interface vmbus_ops;