projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ceadf
)
Staging: hv: netvsc: call vmbus_open directly
author
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 21 Oct 2010 16:58:42 +0000
(09:58 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 21 Oct 2010 16:58:42 +0000
(09:58 -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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/hv/netvsc.c
b/drivers/staging/hv/netvsc.c
index 8b73144e7c12213edacee10f8b81ce9b84530bbf..4c2632cb19e937359708c27408cc2e23c11544bb 100644
(file)
--- 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);