Skip to content

Commit

Permalink
Staging: hv: netvsc_drv: Make netvsc_drv_exit() the module exit function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 1fde28c commit a9869c9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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 */
Expand All @@ -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);

0 comments on commit a9869c9

Please sign in to comment.