Skip to content
Snippets Groups Projects
Commit ba9bf630 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: hv: remove Close 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1fb9dff0
Branches
Tags
No related merge requests found
...@@ -36,13 +36,7 @@ static int ivmbus_open(struct hv_device *device, u32 sendbuffer_size, ...@@ -36,13 +36,7 @@ static int ivmbus_open(struct hv_device *device, u32 sendbuffer_size,
channel_callback, context); channel_callback, context);
} }
static void ivmbus_close(struct hv_device *device)
{
vmbus_close(device->channel);
}
/* vmbus interface function pointer table */ /* vmbus interface function pointer table */
const struct vmbus_channel_interface vmbus_ops = { const struct vmbus_channel_interface vmbus_ops = {
.Open = ivmbus_open, .Open = ivmbus_open,
.Close = ivmbus_close,
}; };
...@@ -87,7 +87,6 @@ struct hv_device_info { ...@@ -87,7 +87,6 @@ struct hv_device_info {
/** /**
* struct vmbus_channel_interface - Contains member functions for vmbus channel * struct vmbus_channel_interface - Contains member functions for vmbus channel
* @Open: Open the channel * @Open: Open the channel
* @Close: Close the channel
* *
* This structure contains function pointer to control vmbus channel * This structure contains function pointer to control vmbus channel
* behavior. None of these functions is externally callable, but they * behavior. None of these functions is externally callable, but they
...@@ -99,7 +98,6 @@ struct vmbus_channel_interface { ...@@ -99,7 +98,6 @@ struct vmbus_channel_interface {
u32 RecvRingBufferSize, void *UserData, u32 UserDataLen, u32 RecvRingBufferSize, void *UserData, u32 UserDataLen,
void (*ChannelCallback)(void *context), void (*ChannelCallback)(void *context),
void *Context); void *Context);
void (*Close)(struct hv_device *device);
}; };
extern const struct vmbus_channel_interface vmbus_ops; extern const struct vmbus_channel_interface vmbus_ops;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment