Skip to content

Commit

Permalink
Staging: hv: remove Close 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 1fb9dff commit ba9bf63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/hv/channel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ static int ivmbus_open(struct hv_device *device, u32 sendbuffer_size,
channel_callback, context);
}

static void ivmbus_close(struct hv_device *device)
{
vmbus_close(device->channel);
}

/* vmbus interface function pointer table */
const struct vmbus_channel_interface vmbus_ops = {
.Open = ivmbus_open,
.Close = ivmbus_close,
};
2 changes: 0 additions & 2 deletions drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ struct hv_device_info {
/**
* struct vmbus_channel_interface - Contains member functions for vmbus channel
* @Open: Open the channel
* @Close: Close the channel
*
* This structure contains function pointer to control vmbus channel
* behavior. None of these functions is externally callable, but they
Expand All @@ -99,7 +98,6 @@ struct vmbus_channel_interface {
u32 RecvRingBufferSize, void *UserData, u32 UserDataLen,
void (*ChannelCallback)(void *context),
void *Context);
void (*Close)(struct hv_device *device);
};

extern const struct vmbus_channel_interface vmbus_ops;
Expand Down

0 comments on commit ba9bf63

Please sign in to comment.