diff options
-rw-r--r-- | drivers/staging/hv/netvsc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 4fc0fd9efad6..4c29c31ad3a5 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c | |||
@@ -240,10 +240,9 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device) | |||
240 | * channel. Note: This call uses the vmbus connection rather | 240 | * channel. Note: This call uses the vmbus connection rather |
241 | * than the channel to establish the gpadl handle. | 241 | * than the channel to establish the gpadl handle. |
242 | */ | 242 | */ |
243 | ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device, | 243 | ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer, |
244 | netDevice->ReceiveBuffer, | 244 | netDevice->ReceiveBufferSize, |
245 | netDevice->ReceiveBufferSize, | 245 | &netDevice->ReceiveBufferGpadlHandle); |
246 | &netDevice->ReceiveBufferGpadlHandle); | ||
247 | if (ret != 0) { | 246 | if (ret != 0) { |
248 | DPRINT_ERR(NETVSC, | 247 | DPRINT_ERR(NETVSC, |
249 | "unable to establish receive buffer's gpadl"); | 248 | "unable to establish receive buffer's gpadl"); |
@@ -369,10 +368,9 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device) | |||
369 | * channel. Note: This call uses the vmbus connection rather | 368 | * channel. Note: This call uses the vmbus connection rather |
370 | * than the channel to establish the gpadl handle. | 369 | * than the channel to establish the gpadl handle. |
371 | */ | 370 | */ |
372 | ret = Device->Driver->VmbusChannelInterface.EstablishGpadl(Device, | 371 | ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer, |
373 | netDevice->SendBuffer, | 372 | netDevice->SendBufferSize, |
374 | netDevice->SendBufferSize, | 373 | &netDevice->SendBufferGpadlHandle); |
375 | &netDevice->SendBufferGpadlHandle); | ||
376 | if (ret != 0) { | 374 | if (ret != 0) { |
377 | DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl"); | 375 | DPRINT_ERR(NETVSC, "unable to establish send buffer's gpadl"); |
378 | goto Cleanup; | 376 | goto Cleanup; |