summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 09:58:42 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-21 09:58:42 -0700
commit81c92f43e783dc247d3672211e3c4a94e76f4286 (patch)
tree8729eddce33aa58e9d72dc7f4510245f8ff07d50 /drivers/staging
parent36ceadfc65a78822dfb8e87fc9daab6be3ac3994 (diff)
downloadop-kernel-dev-81c92f43e783dc247d3672211e3c4a94e76f4286.zip
op-kernel-dev-81c92f43e783dc247d3672211e3c4a94e76f4286.tar.gz
Staging: hv: netvsc: call vmbus_open directly
Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/hv/netvsc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c
index 8b73144..4c2632c 100644
--- a/drivers/staging/hv/netvsc.c
+++ b/drivers/staging/hv/netvsc.c
@@ -717,12 +717,9 @@ static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo)
}
/* Open the channel */
- ret = Device->Driver->VmbusChannelInterface.Open(Device,
- netDriver->RingBufferSize,
- netDriver->RingBufferSize,
- NULL, 0,
- NetVscOnChannelCallback,
- Device);
+ ret = vmbus_open(Device->channel, netDriver->RingBufferSize,
+ netDriver->RingBufferSize, NULL, 0,
+ NetVscOnChannelCallback, Device);
if (ret != 0) {
DPRINT_ERR(NETVSC, "unable to open channel: %d", ret);
OpenPOWER on IntegriCloud