From: Greg Kroah-Hartman Date: Thu, 21 Oct 2010 16:53:11 +0000 (-0700) Subject: Staging: hv: storvsc: call vmbus_close directly X-Git-Tag: firefly_0821_release~7613^2~3583^2~3^2~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1382e0178eeb073594c90a80409e0923adc5048c;p=firefly-linux-kernel-4.4.55.git Staging: hv: storvsc: call vmbus_close directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c index 6249cd076a25..d63cd37743b4 100644 --- a/drivers/staging/hv/storvsc.c +++ b/drivers/staging/hv/storvsc.c @@ -599,7 +599,7 @@ static int StorVscOnDeviceRemove(struct hv_device *Device) DPRINT_INFO(STORVSC, "storage device (%p) safe to remove", storDevice); /* Close the channel */ - Device->Driver->VmbusChannelInterface.Close(Device); + vmbus_close(Device->channel); FreeStorDevice(storDevice); return 0;