Staging: hv: storvsc: call vmbus_close directly
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:53:11 +0000 (09:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Oct 2010 16:53:11 +0000 (09:53 -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 6249cd0..d63cd37 100644 (file)
@@ -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;