From: Greg Kroah-Hartman Date: Thu, 21 Oct 2010 16:58:42 +0000 (-0700) Subject: Staging: hv: netvsc: call vmbus_open directly X-Git-Tag: upstream/snapshot3+hdmi~12602^2~3^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81c92f43e783dc247d3672211e3c4a94e76f4286;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Staging: hv: netvsc: call vmbus_open directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- 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);