diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-21 12:59:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-21 12:59:06 -0400 |
commit | 60f841ac36cc7eff80239bd219cda7cafac3ea2a (patch) | |
tree | 6f1436d9acf1f1167a05be91786a2d297a51f816 | |
parent | 81c92f43e783dc247d3672211e3c4a94e76f4286 (diff) |
Staging: hv: storvsc: call vmbus_open directly
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>
-rw-r--r-- | drivers/staging/hv/storvsc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c index d63cd37743b4..19e87f689fa0 100644 --- a/drivers/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c | |||
@@ -499,13 +499,11 @@ static int StorVscConnectToVsp(struct hv_device *Device) | |||
499 | memset(&props, 0, sizeof(struct vmstorage_channel_properties)); | 499 | memset(&props, 0, sizeof(struct vmstorage_channel_properties)); |
500 | 500 | ||
501 | /* Open the channel */ | 501 | /* Open the channel */ |
502 | ret = Device->Driver->VmbusChannelInterface.Open(Device, | 502 | ret = vmbus_open(Device->channel, |
503 | storDriver->RingBufferSize, | 503 | storDriver->RingBufferSize, storDriver->RingBufferSize, |
504 | storDriver->RingBufferSize, | 504 | (void *)&props, |
505 | (void *)&props, | 505 | sizeof(struct vmstorage_channel_properties), |
506 | sizeof(struct vmstorage_channel_properties), | 506 | StorVscOnChannelCallback, Device); |
507 | StorVscOnChannelCallback, | ||
508 | Device); | ||
509 | 507 | ||
510 | DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d", | 508 | DPRINT_DBG(STORVSC, "storage props: path id %d, tgt id %d, max xfer %d", |
511 | props.PathId, props.TargetId, props.MaxTransferBytes); | 509 | props.PathId, props.TargetId, props.MaxTransferBytes); |