Skip to content

Commit

Permalink
Staging: hv: remove Open from struct vmbus_channel_interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Oct 21, 2010
1 parent 60f841a commit 036a257
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions drivers/staging/hv/channel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@
#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,
};
5 changes: 0 additions & 5 deletions drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,13 @@ 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
* are used for normal vmbus channel internal behavior.
* 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;
Expand Down

0 comments on commit 036a257

Please sign in to comment.