summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/netvsc_drv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan2011-05-13 04:35:17 +0200
committerGreg Kroah-Hartman2011-05-17 21:28:58 +0200
commita9869c94251a7a1c9bb369baa0e7917b9d315b37 (patch)
tree169198fbfc3f2a026e4d3e412f9a6f71c1493ba4 /drivers/staging/hv/netvsc_drv.c
parentStaging: hv: netvsc_drv: Make netvsc_drv_init the module init function (diff)
downloadkernel-qcow2-linux-a9869c94251a7a1c9bb369baa0e7917b9d315b37.tar.gz
kernel-qcow2-linux-a9869c94251a7a1c9bb369baa0e7917b9d315b37.tar.xz
kernel-qcow2-linux-a9869c94251a7a1c9bb369baa0e7917b9d315b37.zip
Staging: hv: netvsc_drv: Make netvsc_drv_exit() the module exit function
Make netvsc_drv_exit() the module exit function. 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>
Diffstat (limited to 'drivers/staging/hv/netvsc_drv.c')
-rw-r--r--drivers/staging/hv/netvsc_drv.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index e690ec801754..7b9c229f7295 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -433,7 +433,7 @@ static struct hv_driver netvsc_drv = {
.remove = netvsc_remove,
};
-static void netvsc_drv_exit(void)
+static void __exit netvsc_drv_exit(void)
{
vmbus_child_driver_unregister(&netvsc_drv.driver);
}
@@ -475,11 +475,6 @@ static int __init netvsc_drv_init(void)
return ret;
}
-static void __exit netvsc_exit(void)
-{
- netvsc_drv_exit();
-}
-
static const struct pci_device_id __initconst
hv_netvsc_pci_table[] __maybe_unused = {
{ PCI_DEVICE(0x1414, 0x5353) }, /* VGA compatible controller */
@@ -492,4 +487,4 @@ MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V network driver");
module_init(netvsc_drv_init);
-module_exit(netvsc_exit);
+module_exit(netvsc_drv_exit);