aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/hv/channel_interface.c9
-rw-r--r--drivers/staging/hv/vmbus_api.h3
2 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/hv/channel_interface.c b/drivers/staging/hv/channel_interface.c
index a288b70b13c0..b818bcf886aa 100644
--- a/drivers/staging/hv/channel_interface.c
+++ b/drivers/staging/hv/channel_interface.c
@@ -41,17 +41,8 @@ static void ivmbus_close(struct hv_device *device)
41 vmbus_close(device->channel); 41 vmbus_close(device->channel);
42} 42}
43 43
44static int ivmbus_sendpacket(struct hv_device *device, const void *buffer,
45 u32 bufferlen, u64 requestid, u32 type,
46 u32 flags)
47{
48 return vmbus_sendpacket(device->channel, buffer, bufferlen,
49 requestid, type, flags);
50}
51
52/* vmbus interface function pointer table */ 44/* vmbus interface function pointer table */
53const struct vmbus_channel_interface vmbus_ops = { 45const struct vmbus_channel_interface vmbus_ops = {
54 .Open = ivmbus_open, 46 .Open = ivmbus_open,
55 .Close = ivmbus_close, 47 .Close = ivmbus_close,
56 .SendPacket = ivmbus_sendpacket,
57}; 48};
diff --git a/drivers/staging/hv/vmbus_api.h b/drivers/staging/hv/vmbus_api.h
index 9fe983043574..ec352c38aa5c 100644
--- a/drivers/staging/hv/vmbus_api.h
+++ b/drivers/staging/hv/vmbus_api.h
@@ -88,7 +88,6 @@ struct hv_device_info {
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 89 * @Open: Open the channel
90 * @Close: Close the channel 90 * @Close: Close the channel
91 * @SendPacket: Send a packet over the channel
92 * 91 *
93 * This structure contains function pointer to control vmbus channel 92 * This structure contains function pointer to control vmbus channel
94 * behavior. None of these functions is externally callable, but they 93 * behavior. None of these functions is externally callable, but they
@@ -101,8 +100,6 @@ struct vmbus_channel_interface {
101 void (*ChannelCallback)(void *context), 100 void (*ChannelCallback)(void *context),
102 void *Context); 101 void *Context);
103 void (*Close)(struct hv_device *device); 102 void (*Close)(struct hv_device *device);
104 int (*SendPacket)(struct hv_device *Device, const void *Buffer,
105 u32 BufferLen, u64 RequestId, u32 Type, u32 Flags);
106}; 103};
107 104
108extern const struct vmbus_channel_interface vmbus_ops; 105extern const struct vmbus_channel_interface vmbus_ops;