Staging: hv: Get rid of the indirection in invoking netvsc_device_remove()
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:02 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:48:48 +0000 (13:48 -0700)
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/rndis_filter.c

index 299b14e71ff4fa007bb3b2bdfe2474367eebea7c..f9c18fa1f16e2f44fdcaf13809a883bab5a11837 100644 (file)
@@ -809,8 +809,7 @@ int rndis_filter_device_remove(struct hv_device *dev)
        kfree(rndis_dev);
        net_dev->extension = NULL;
 
-       /* Pass control to inner driver to remove the device */
-       rndis_filter.inner_drv.base.dev_rm(dev);
+       netvsc_device_remove(dev);
 
        return 0;
 }