Skip to content

Commit 93f039f

Browse files
EthanNelson-Mooreliuw
authored andcommitted
PCI: hv: remove unnecessary module_init/exit functions
The pci-hyperv-intf driver has unnecessary empty module_init and module_exit functions. Remove them. Note that if a module_init function exists, a module_exit function must also exist; otherwise, the module cannot be unloaded. Signed-off-by: Ethan Nelson-Moore <[email protected]> Signed-off-by: Wei Liu <[email protected]>
1 parent ff225ba commit 93f039f

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

drivers/pci/controller/pci-hyperv-intf.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,5 @@ int hyperv_reg_block_invalidate(struct pci_dev *dev, void *context,
5252
}
5353
EXPORT_SYMBOL_GPL(hyperv_reg_block_invalidate);
5454

55-
static void __exit exit_hv_pci_intf(void)
56-
{
57-
}
58-
59-
static int __init init_hv_pci_intf(void)
60-
{
61-
return 0;
62-
}
63-
64-
module_init(init_hv_pci_intf);
65-
module_exit(exit_hv_pci_intf);
66-
6755
MODULE_DESCRIPTION("Hyper-V PCI Interface");
6856
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)