Staging: hv: storvsc: call vmbus_open directly
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:59:06 +0000 (09:59 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:59:06 +0000 (09:59 -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/storvsc.c

index d63cd37743b4f2c4d49b3c561246fda1691da098..19e87f689fa0e61496f890a3e05d7ba223052e54 100644 (file)
@@ -499,13 +499,11 @@ static int StorVscConnectToVsp(struct hv_device *Device)
        memset(&props, 0, sizeof(struct vmstorage_channel_properties));
 
        /* Open the channel */
-       ret = Device->Driver->VmbusChannelInterface.Open(Device,
-                       storDriver->RingBufferSize,
-                       storDriver->RingBufferSize,
-                       (void *)&props,
-                       sizeof(struct vmstorage_channel_properties),
-                       StorVscOnChannelCallback,
-                       Device);
+       ret = vmbus_open(Device->channel,
+                        storDriver->RingBufferSize, storDriver->RingBufferSize,
+                        (void *)&props,
+                        sizeof(struct vmstorage_channel_properties),
+                        StorVscOnChannelCallback, Device);
 
        DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d",
                   props.PathId, props.TargetId, props.MaxTransferBytes);