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>
This commit is contained in:
Greg Kroah-Hartman 2010-10-21 09:58:42 -07:00
parent 36ceadfc65
commit 81c92f43e7
1 changed files with 3 additions and 6 deletions

View File

@ -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);