]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: hv: netvsc: call vmbus_establish_gpadl directly
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 15:48:19 +0000 (08:48 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 15:48:19 +0000 (08:48 -0700)
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>
drivers/staging/hv/netvsc.c

index 4fc0fd9efad640694235742147f0b399118d0480..4c29c31ad3a5de5e432e12087788c6a0e7916812 100644 (file)
@@ -240,10 +240,9 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
         * channel.  Note: This call uses the vmbus connection rather
         * than the channel to establish the gpadl handle.
         */
-       ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device,
-                                       netDevice->ReceiveBuffer,
-                                       netDevice->ReceiveBufferSize,
-                                       &netDevice->ReceiveBufferGpadlHandle);
+       ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer,
+                                   netDevice->ReceiveBufferSize,
+                                   &netDevice->ReceiveBufferGpadlHandle);
        if (ret != 0) {
                DPRINT_ERR(NETVSC,
                           "unable to establish receive buffer's gpadl");
@@ -369,10 +368,9 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
         * channel.  Note: This call uses the vmbus connection rather
         * than the channel to establish the gpadl handle.
         */
-       ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device,
-                                       netDevice->SendBuffer,
-                                       netDevice->SendBufferSize,
-                                       &netDevice->SendBufferGpadlHandle);
+       ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer,
+                                   netDevice->SendBufferSize,
+                                   &netDevice->SendBufferGpadlHandle);
        if (ret != 0) {
                DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl");
                goto Cleanup;